Activity types

With the WorkZone template, you get a number of WorkZone-specific activity types.


Check

Check is the basic activity type, which you can use for creating items on a check list. You can, for example, use it for providing information that must be read before moving on to the next activity. You can add instructions and links to more information in this activity. This is the default activity type.

Check parameters

No parameters


CompleteGraph

CompleteGraph completes the graph. You can use this activity to allow users to complete a case activity list even if some activities have not been executed, for example, if the activities were not needed in a work process.

CompleteGraph parameters

No parameters


CopyDocuments

CopyDocuments copies documents that are retrieved by a query to the current case. The documents are copied without the source meta data. The access code is verified on the basis of the case handler's or the case owner's access rights. For example, you can use this activity type to copy standard documents, such as templates to a case.

CopyDocuments parameters

Parameter Description Required

DocumentSource

OData query that identifies the documents to copy.

Example: /Records?$filter=RecordType_Value eq 'SKAB'&$select=ID,UserKey,Summary copies templates with the document type SKAB to the current case.

Yes

DefaultDocumentName

If you copy only one document, you can specify a default name that will be applied to the copied document.

If you copy more than one document, the original name will be used.

Yes

DocumentType

The document type that will be applied to the copied documents. Yes

DocumentState

The document state that will be applied to the copied documents. Yes

MaxDocumentsToCopy

Defines the maximum number of documents to copy. The default value is 1.

If the maximum number of documents to copy is exceeded, no documents will be copied.

Yes


EditDocuments

EditDocuments provides a list of documents for editing. The documents on the list are retrieved by a query, for example, documents on a specific case, documents with me as the case handler, and so on.

EditDocuments parameters

Parameter Description Required

DocumentQuery

OData query that searches for the documents to edit. By default all documents are listed.

Example: /Records?$filter=FileKey_Value eq '{Case.ID}' retrieves the documents on the current case.

Where Case.ID refers to the current case.

Yes


StartProcess

StartProcess starts a process or another case activity list. When a user executes the activity, the Start process dialog box opens with the specified process.

Automatic execution

You can execute the StartProcess activity type automatically but it will only work if the process you start does not have any parameters. If you specify a process with parameters, an error message will be written to the activity history when the activity tries to start the process automatically. Note that all standard processes have parameters. Automatic execution works when starting a case activity list or a customized process without parameters. See Execute activities automatically for information about using the AUTO and L-AUTO roles.

StartProcess parameters

Parameter Description Required

ProcessGUID

The GUID of the process you want the activity to start.

You can look up the GUIDs in WorkZone Configurator, see FAQs about case activities.

Yes

ProcessOwner

Specify the process owner using the NameCode of the process owner or using the case handler on the current case using the notation Case.Officer_Value.

If you add the AUTO or L-AUTO roles, it is required to specify this parameter. Automatic start of the process will fail if the ProcessOwner parameter is not specified.

No


SendSmartPost

SendSmartPost starts a SmartPost process. In this release, you can send a letter to recipients. By default the SendSmartPost activity is executed automatically.

SendProcess parameters

Parameter Description Required

Letter

OData query that specifies which document to send as the letter in the SmartPost message.

Example: /Records?$filter=FileKey_Value eq '{Case.ID}' and (Title eq 'Standard letter')

The query retrieves a document with the title Standard letter from the current case.

Yes

Attachments

OData query that specifies which attachments to include in the message.

Example: /Records?$filter=FileKey_Value eq '{Case.ID}' and (Title eq 'Attachment 1' or title eq 'Attachment 2')

The query retrieves two documents with the titles Attachment 1 and Attachment 2 from the current case.

No

Recipients

Specify the recipients of the message.

You can use an OData query or you can enter the party roles separated by comma. If a party with a specific role is not found on the case or the role is invalid, you can specify which role to use instead after a slash /. You specify as many alternative roles as you need separated by slashes.

Example: OData query

/Addresses?$filter=Name/Files/any(a: a/FileKey_Value eq '{Case.ID}' and a/CustomLabel_Value eq 'Reply-To')

The query retrieves addresses of parties with the role Reply to on the current case.

Example: Simple notation

Reply-To, Høringspart/Sagspart which retrieves addresses of parties with the roles Reply to and Hearing party.

If no parties with the role Hearing part (Høringspart) are found parties with the role Sagspart will be retrieved instead.

You must specify the codes for the roles and not the localized labels. You can see the codes in WorkZone Configurator. Go to Case > Parties and references.

Yes

CopyRecipients

Specify the copy recipients of the message.

You can use an OData query or you can enter the party roles separated by comma and alternative roles separated by slashes in the same way as for Recipients.

If the total number of recipients and copy recipients exceeds the maximum allowed number of 50 recipients, the message will not be sent.

No

ProcessGuid

Specify the GUID of the SmartPost process you want the activity to start. Use this parameter if your organization has several SmartPost processes and you want to use to a specific SmartPost process.

If you do not specify a GUID, the GUID of the default SmartPost process is used.

You can look up the GUIDs in WorkZone Configurator, see FAQs about case activities.

No

ProcessOwner

Specify the process owner of the SmartPost process. Possible values are:

  • NameCode—Enter the NameCode of the employee who will be the process owner using upper case letters.
  • {Case.Officer_Value}—The case handler on the case where the case activity is started becomes the process owner.
  • {DocumentCaseHandler}—The case handler on letter document that will be sent by SmartPost becomes the process owner.

If the values are invalid, an error message will be written to the history.

Yes


UpdateEntities

UpdateEntities updates values of specific text fields on a case, for example if you want the case title and the case state of the current case to change after an action has been completed.

The activity type can be used to update both standard and custom fields.

The following types of fields cannot be updated:

  • Computed and read-only properties. See the WorkZone QueryBuilder documentation for information about which properties of the Files entity are computed.
  • Other entities, for example Case text and Information, if they are empty.
  • Custom droplists.

Current user and organizational unit

You can update fields on a case using @me and @unit to insert the current user as case handler on a case and the current user's organizational unit as the responsible unit.

To add the current user as case handler on the case and the current user's organizational unit as the responsible unit, define the parameters as follows:

When using @Me or @Unit, do not set the UpdateEntities activity to execute automatically. It is a system user who executes activities with the AUTO role assigned, and therefore @Me and @Unit will fail. See Execute activities automatically.

UpdateEntities parameters

Parameter Description Required

Entity

Specify which entity you want to get values from, for example Files (Cases).

Yes

Filter

Enter the file key of the case whose values you want to update. If you always want to update the current case, meaning the case on which the case activity is started, you can enter:

ID eq '{Case.ID}'

Tip: You can use WorkZone QueryBuilder to build your query and copy the filter part to this parameter. See How do you copy a query from WorkZone QueryBuilder.

Yes

Property

Specify the properties and values you want to update in JSON format. For example, if you want to update the case state and the case title, enter:

{"State_Value":"UB","Title":"Updated"}

Which will update the State field with the state UB, Being processed and the Title to Updated.

If, for example, you want to update the Title field with the date and time that the current case was updated and the current state, enter:

{"Title":"Title: {Case.Title}, updated: {Case.UpdateTime}, State: {Case.State_Value}"}

Which will update the case title to, for example: Title: Case title, updated: 25-03-2020 11.50.00, State: UB, Being processed.

Tip: You can use WorkZone QueryBuilder to build your query, convert it to JSON format, and copy it to this parameter. See How do you copy a query from WorkZone QueryBuilder.

Yes


ValidateEntities

ValidateEntities allows you to validate values on a case based on a condition that you define, and if the condition is met, the subsequent activities will be included or excluded. The ValidateEntities activity type works in connection with guards that you define on the Include and Exclude relation types.

Guards

On the Include and Exclude relation types, you need to define guards that validate against the condition you have defined in an activity that holds the activity type ValidateEntities.

On the Include relation type, enter:

<Activity ID>=1

On the Exclude relation type, enter:

<Activity ID>!=1

This also works vice versa, depending on what you want the graph to do.

<Activity ID> is the ID of the activity that holds the ValidateEntities activity type.

=1 means that the condition you have defined in the activity is met (it is TRUE).

!=1 means that the condition you have defined in the activity is not met (it is FALSE).

ValidateEntities parameters

Parameter Description Required

Entity

Specify which entity you want to get values from, for example Files (Cases).

Yes

Filter

Enter the file key of the case whose values you want to update. If you always want to update the current case, that is the case on which the case activity is started, you can enter:

ID eq '{Case.ID}'

Tip: You can use WorkZone QueryBuilder to build your query and copy the filter part to this parameter. See How do you copy a query from WorkZone QueryBuilder.

Yes

Property

Specify the properties and values you want to validate in JSON format. For example, if you want to validate the value of the case state and the responsible unit, enter:

{"State_Value":"FB","ResponsibleOu_Value":"AS"}

In connection with guards, it will validate if the state is FB and if the responsible unit is AS and then include or exclude the following activities depending on the outcome.

Another example may be to validate the current case state in the title:

{"Title":"Case with state: {Case.State_Value}"}

In connection with guards, it will validate if the title is Case with state: <currentState> and then include or exclude the following activities depending on the outcome.

Tip: You can use WorkZone QueryBuilder to build your query, convert it to JSON format, and copy it to this parameter. See How do you copy a query from WorkZone QueryBuilder.

Yes

ValidationInterval

Specify at which interval you want the ValidateEntity activity to be executed automatically. Use this parameter if you await specific information to be available on a case before the next activity can be executed. For example, a receipt for payment must be saved on the case before the case handling can continue.

Enter the interval in number of minutes. The minimum interval is 30 minutes.

The automatic execution will end when the ValidateEntity activity is no longer active, for example, if is not executable or not included in the graph, or when the entire graph is completed.

If you have several ValidateEntity activities in a graph, the activity with the lowest interval will determine when the entire graph will be updated. The graph will also be updated if only one of the ValidateEntity activities has this parameter filled in.

If you do not specify this parameter, the user will need to click the Update button in WorkZone Client to update the activity list manually.

No

Do not use @Me or @Unit in the ValidateEntities activity. The ValidateEntities activity is always executed automatically by a system user, and therefore @Me and @Unit will fail. See Execute activities automatically.


GetValue

GetValue allows you to fetch a value from an entity, for example a case. You can then use this value in guards to make conditions based on WorkZone data. If the condition is met, the subsequent activities will be included or excluded.

GetValue parameters

Parameter Description Required

Entity

Specify which entity you want to fetch a value from, for example Files (Cases).

Yes

Filter

Enter the key of the entity you want to get a value from. If you always want to fetch a value on the current case, which is the case on which the case activity is started, you can enter:

ID eq '{Case.ID}'

Tip: You can use WorkZone QueryBuilder to build your query and copy the filter part to this parameter. See How do you copy a query from WorkZone QueryBuilder.

Yes

Property

Specify the property field that you want to fetch a value from. For example, if you want to get the case state, enter:

State_Value

You can use WorkZone QueryBuilder to find the name of the available properties.

Yes

 

Do not use @Me or @Unit in the GetValue activity. The GetValue activity is always executed automatically by a system user, and therefore @Me and @Unit will fail. See Execute activities automatically.


SetValue

SetValue allows you to set a value based on a query in a WorkZone field. You can use the Computations field on the SetValue activity to provide an expression, for example combining a GetValue activity and actual values. The value that is calculated in the Computations field, will be the value that will be set in the specified WorkZone field.

SetValue parameters

Parameter Description Required

Entity

Specify on which entity you want to set a value, for example Files (Cases).

Yes

Filter

Enter the key of the entity. If you always want to set a value on the current case, which is the case that the case activity is started on, you can enter:

ID eq '{Case.ID}'

Tip: You can use WorkZone QueryBuilder to build your query and copy the filter part to this parameter. See How do you copy a query from WorkZone QueryBuilder.

Yes

Property

Specify the property that you want to insert the value in to. For example, if you want to set a date in the Planned completed property, enter:

PlanComplete

You can use WorkZone QueryBuilder to find the name of the available properties.

Yes

MaxEntitiesTo Update

The maximum number of entities that the activity can set. For example, if you set this parameter to 10, and your query results in 10 cases or less, all cases will be updated. If the result of the query exceeds the maximum, the activity will fail , and an error message will be shown in the history.