@UESService public interface UESArtifact
UES Artifact is service that provides operations over artifact.
Modifier and Type | Field and Description |
---|---|
static UESURI |
BETYPE_ARTIFACT
URI of artifact business entity.
|
Modifier and Type | Method and Description |
---|---|
UESURI |
create(UESURI locationUri,
Creates an artifact of class Artifact.
|
void |
delete(UESURI artifactUri)
This command deletes the specified artifact from the system.
|
UESURI |
export(UESURI artifactUri,
The command exports a artifact to a DataFile, which is saved to the Export Storage.
|
UESArtifactAttributes |
getAttributes(UESURI artifactUri)
This command gets the attributes of the artifact specified by artifact URI and returns its detail.
|
UESStreamHandler |
getExportData(UESURI artifactUri,
The command returns a data file generated by the export command.
|
UESArtifactPresentationAttributes |
getPresentationAttributes(UESURI artifactUri)
Retrieves presentation settings of an artifact.
|
UESResultList<UESReferenceEntry,UESArtifactGetReferenceList> |
getReferenceList(UESURI artifactUri,
This command returns a list of all references from the specified artifact and / or all references to the specified artifact from / to
his territory (command does not return references from / to other territories).
|
void |
move(UESURI artifactUri,
This command moves an artifact to the new location (folder, organizational unit, meta mode dictionary) in the same territory.
|
UESURI |
setAttributes(UESURI artifactUri,
Command for setting attributes of artifact.
|
void |
setCompetentRole(UESURI artifactUri,
This command sets a new competent role for an artifact (asynchronously).
|
UESURI |
setPresentationAttributes(UESURI artifactUri,
Configures presentation settings of an artifact.
|
void |
setState(UESURI artifactUri,
This command sets a new state of the specified artifact.
|
void |
setVisualPresentation(UESURI artifactUri,
Deprecated.
|
UESArtifactCreate
DTO, otherwise is used default meta artifact for territory. Competent role for artifact will be selected as
the most suitable according to specified location and meta artifact (executive/authorized role with connected interface), or can be
also specified in UESArtifactCreate
DTO.locationUri
- URI of folder/org. unit/meta model where artifact will be created.artifact
- DTO containing attributes of a new artifactUESArtifactRTException
artifactUri
- URI of required artifactUESArtifactRTException
artifactUri
- URI of required artifactartifact
- DTO containing attributes for updating the artifactUESArtifactRTException
artifactUri
- UESURI of the artifact whose competency is about to be changed.newCompetency
- DTO containing attributes of the competency changeUESArtifactRTException
1. The easiest way is to specify the required artifact state from the enumeration UESArtifactStateType. In this scenario, an appropriate activity template is found (an activity transforming the artifact to the required state) and it is used the same way as in the third scenario. If there is no such an activity template, the command fails. If there are a few such activities, then the first one is used (activity templates are ordered by name and code for this purpose).
2. By the same pattern, it is possible to specify UESURI of the artifact state template we want to set. The advantage compared to the first scenario is that we can also set some specific custom states that are not included in the enumeration UESArtifactStateType without knowing the activity template that sets it.
3. The UESURI of the activity template can be also specified directly. This activity has to contain an action to change the artifact state on its exit activity state. The activity is created and it changes the artifact state. If the activity contains an action with an attached script then the script is run first asynchronously and the artifact state is set after the script finishes successfully (therefore the artifact state can be actually set later, e.g. two minutes after setState command finishes).
artifactUri
- UESURI of the artifact which state is about to be changed.state
- DTO containing details of the state change.UESArtifactRTException
artifactUri
- UESURI of the artifact to be movednewLocation
- DTO containing details of the movingUESArtifactRTException
artifactUri
- UESURI of the artifact which is about to be deleted.UESArtifactRTException
artifactUri
- UESURI of the artifact to which and/or from which the references are listed.criteria
- DTO containing criteria for listing references. Available parameters are: name
,
code
, entityTypeUri
, type
: UESReferenceType
, direction
:
UESReferenceDirection
and count
.UESArtifactRTException
artifactUri
- UESURI of the artifact which layout is about to be changed.presentation
- DTO containing presentation settings.UESArtifactRTException
artifactUri
- UESURI of the artifact whose presentation settings are to be changed.presentation
- DTO containing presentation settings.UESArtifactRTException
artifactUri
- UESURI of the artifact whose presentation settings are to be retrieved.UESArtifactRTException
artifactUri
- UESURI of the artifact to exportartifact
- DTO that contains attributes of the export processUESArtifactRTException
artifactUri
- UESURI of the artifact we want to get the exported file from.artifact
- DTO that contains attributes concerning the file returned.UESArtifactRTException