Workflow notification variables (legacy)

This article applies to the legacy workflow feature. For more information on the data-driven workflow feature introduced in version 2023.1 of Semarchy xDM, see Data-driven workflows.

The following table lists the variables available in the workflow notifications for tasks and transitions.

Variable Syntax Description Example Tasks Transitions

${LoadId}

ID of the load (workflow instance) stored in the repository

23442

Yes

Yes

${JobName}

Name of the job executed at the end of the workflow

PRODUCT_ALL

Yes

Yes

${WorkflowName}

Name of workflow defined at design-time

CreateProductWorkflow

Yes

Yes

${ActivityLabel}

Label of workflow instance (either the workflow design-time label or the label entered at runtime)

Create Products Workflow

Yes

Yes

${AdminRoleName}

Name of the administrator role defined for the workflow

WorkflowAdministrator

Yes

Yes

${AdminRoleEmail}

List of emails defined for the role defined as the workflow administrator, if any

administrators@acme.com

Yes

Yes

${CurrentTaskName}

Name of current task as defined at design-time

CreateItems

Yes

Yes

${CurrentTaskLabel}

Label of current task as defined at design-time

Create Items

Yes

Yes

${CurrentTaskEntityName}

Name of the entity managed in the current task

Product

Yes

Yes

${CurrentTaskEntityLabel}

Label of the entity managed in the current task

Product

Yes

Yes

${CurrentTaskRootRecordCount}

Number of root records for current task.
Note that this record count is related to the performer (connected user). For scheduled notifications (tasks durations reached), there is no connected user, and this variable is not computed (value set to "-").

2

Yes

Yes

${CurrentTaskAssignedRoleName}

Name of the role the current task is assigned to

SupplyChain

Yes

Yes

${CurrentTaskAssignedRoleEmail}

List of emails defined for the role the current task is assigned to

suppliers@acme.com

Yes

Yes

${CurrentTaskAssignerRoleName}

Name of role who can assign/reassign the current task

SupplyChainRouter

Yes

Yes

${CurrentTaskAssignerRoleEmail}

List of emails defined for the role who can assign/reassign the current task

spr@acme.com

Yes

Yes

${CurrentTaskAssigneeName}

Name of current task assignee (the performer, when task is running). This is the concatenation of the user First Name and Last Name.

Joe Celko

Yes

Yes

${CurrentTaskAssigneeUsername}

User name of current task assignee (the performer, when task is running). This is the user login.

joe.celko

Yes

Yes

${CurrentTaskAssigneeEmail}

Email of current task assignee

joe.celko@acme.com

Yes

Yes

${CurrentTaskUnassigneeName}

Name of current task assignee before an un-assign or re-assign operation. This is the concatenation of the user First Name and Last Name.

Joe Celko

Yes

Yes

${CurrentTaskUnassigneeUsername}

User name of current task assignee before an un-assign or re-assign operation. This is the user login.

joe.celko

Yes

Yes

${CurrentTaskUnassigneeEmail}

Email of current task assignee before un-assign or re-assign operation

joe.celko@acme.com

Yes

Yes

${CurrentTaskPendingMaxDuration}

Max pending duration in minutes for current task

-

Yes

Yes

${CurrentTaskPendingActualDuration}

Actual pending duration in minutes for current task

1929

Yes

Yes

${CurrentTaskRunningMaxDuration}

Max running duration in minutes for current task

-

Yes

Yes

${CurrentTaskRunningActualDuration}

Actual running duration in minutes for current task

12

Yes

Yes

${CurrentTaskTotalMaxDuration}

Max total duration in minutes for current task

-

Yes

Yes

${CurrentTaskTotalActualDuration}

Actual total duration in minutes for current task

1941

Yes

Yes

${CurrentTaskStartDate}

First start timestamp of current task

2016-12-21 21:23:11 PT

Yes

Yes

${CurrentTaskEndDate}

Timestamp at which task was terminated

2016-12-21 21:23:23 PT

Yes

Yes

${CurrentTaskExecCount}

Number of executions of current task

1

Yes

Yes

${CurrentEvent}

Label of the event that generated current message. Can be one of the following: Task Started, Task Suspended, Task Finished, Task Assigned, Task Unassigned, Task Reassigned, Task Max Pending Duration Reached, Task Max Running Duration Reached, Task Total Duration Reached, Transition

Transition

Yes

Yes

${TransitionName}

Name of the transition

RequestMoreInfo

No

Yes

${TransitionLabel}

Label of the transition

Request More Information

No

Yes

${TransitionComments}

Comments entered by the user during the transition

Please approve.

No

Yes

${PreviousTaskName}

Name of the previous task as defined at design-time

CreateProductData

No

Yes

${PreviousTaskLabel}

Label of previous task as defined at design-time

Create Product Data

No

Yes

${PreviousTaskEntityName}

Name of the entity for the previous task

Product

No

Yes

${PreviousTaskEntityLabel}

Label of the entity for the previous task

Product

No

Yes

${PreviousTaskRootRecordCount}

Number of root records for the previous task.
Note that this record count is related to the performer (connected user). For scheduled notifications (tasks durations reached), there is no connected user, and this variable is not computed (value set to "-").

2

No

Yes

${PreviousTaskAssignedRoleName}

Name of role the previous task is assigned to

Corp Marketing

No

Yes

${PreviousTaskAssignedRoleEmail}

List of emails defined for the role the previous task is assigned to

-

No

Yes

${PreviousTaskAssignerRoleName}

Name of role who can assign/reassign the previous task

Corp Marketing

No

Yes

${PreviousTaskAssignerRoleEmail}

List of emails defined for the role who can assign/reassign the previous task

-

No

Yes

${PreviousTaskAssigneeName}

Name of the previous task’s assignee. This is the concatenation of the user First Name and Last Name.

Bob Marley

No

Yes

${PreviousTaskAssigneeUsername}

User name of the previous task’s assignee.This is the user login.

robert.n.marley

No

Yes

${PreviousTaskAssigneeEmail}

Email of the previous task assignee (the performer, when task is running)

robert.n.marley@acme.com

No

Yes

${PreviousTaskTotalMaxDuration}

Max total duration in minutes for the previous task

-

No

Yes

${PreviousTaskTotalActualDuration}

Actual total duration in minutes for the previous task

1941

No

Yes

${PreviousTaskStartDate}

First start timestamp of previous task

2016-12-21 21:23:11 PT

No

Yes

${PreviousTaskEndDate}

Timestamp at which previous task was terminated

2016-12-21 21:23:23 PT

No

Yes

${PreviousTaskExecCount}

Number of executions of previous task

1

No

Yes

${NextTaskName}

Name of the next task as defined at design-time

CreateProductData

No

Yes

${NextTaskLabel}

Label of next task as defined at design-time

Create Product Data

No

Yes

${NextTaskEntityName}

Name of the entity for the next task

Product

No

Yes

${NextTaskEntityLabel}

Label of the entity for the next task

Product

No

Yes

${NextTaskAssignedRoleName}

Name of role the next task is assigned to

Corp Marketing

No

Yes

${NextTaskAssignedRoleEmail}

List of emails defined for the role the next task is assigned to

-

No

Yes

${NextTaskAssignerRoleName}

Name of role who can assign/reassign the next task

Corp Marketing

No

Yes

${NextTaskAssignerRoleEmail}

List of emails defined for the role who can assign/reassign the next task

-

No

Yes

${NextTaskAssigneeName}

Name of the next task’s assignee. This is the concatenation of the user First Name and Last Name.

Bob Marley

No

Yes

${NextTaskAssigneeUserName}

Username of the next task’s assignee. This is the user login.

robert.n.marley

No

Yes

${NextTaskAssigneeEmail}

Email of the next task assignee (the performer, when task is running)

robert.n.marley@acme.com

No

Yes

${WorkflowUrl}

URL allowing to view and interact with the workflow

http://host/semarchy/mdm-apps/dloc/app/legacy-workflow/42

Yes

Yes

${ServerBaseUrl}

Base URL for the Semarchy xDM server, as defined by the administrator.

http://host/semarchy

Yes

Yes

${ApplicationBaseUrl}

Base URL for the current application

http://host/semarchy/mdm-apps/dloc/app

Yes

Yes

${ViewWorkflowAction}

Action button with URLs to interact with the task directly.

<div><a href=…..>View Workflow</a>…​</div>

Yes

Yes