Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This How to article focuses on adding documents and its metadata to a case, the same way you can add an uploaded file to a case. When opening the case, you want to see all the files belonging to that case. For displaying the files an Container type: AQ_InstanceList container is used:

UI Text Box
type
Tip

In this situation, a case is represented as an Aggregate, see Designing cases using aggregates

...

First step is to create the file from the Document and store it on the filesystem, second step is to get all necessary metadata to display in the list. This results in this flow: 

...

Info

The first servicecall is of type 'AQ_Document_Generate', the second of type 'Service call type: AQ_File_GetMetaData'.

...

Summary: a Document instance is created and added to the Case.Documents relation.

...

type
Tip

The Service call type: AQ_Document_Generate service doesn't retrieve the metadata metadata - like filename and date created - from  from the file. To retrieve this information from the created file, the service Service call type: AQ_File_GetMetaData can  can be used.

AQ_File_GetMetadata

...