ArcGIS Arcade expressions allow you to create placeholders for dynamic properties in job templates and workflow diagrams. For example, the Run GP Service step can be configured to use the jobLocation($job) Arcade expression as an input parameter that's replaced with the job's location when the step is run.
The following is a list of ArcGIS Workflow Manager components that support ArcGIS Arcade expressions:
- Job templates
- Paths
- Step templates
The following table contains a list of ArcGIS Arcade expressions that can be used in Workflow Manager:
Arcade expression | Description | Example input | Example output |
---|---|---|---|
$currentUser | Returns the full name of the current user | $currentUser | John Doe |
userGroups($currentUser) | Returns the ArcGIS Enterprise portal group IDs for the current user | userGroups($currentUser) |
abcde12345 |
jobVersion($job,<DatasourceName>) | Active job version | jobVersion($job,'Gas_Utility_Network') | jdoe.JOB_1 |
jobType($job) | Job template name | jobType($job) | Data_edits |
jobStatus($job) | Job status | jobStatus($job) | Ready to work |
jobStartedDate($job) | Job start date in epoch format | jobStartedDate($job) | 1589414631 |
jobEndDate($job) | Job closed date in epoch format | jobEndDate($job) | 1589414631 |
jobDescription($job) | Job description | jobDescription($job) | This is a landbase editing job |
jobPriority($job) | Job priority (high, medium, or low) | jobPriority($job) | Low |
jobName($job) | Job name | jobName($job) | JOB_1 |
lastRunner($job, <StepId>) | User name of the person who last ran the step | lastRunner($job, 'f50d740d-cc04-9296-4ce3-181e82604465') | jdoe |
jobCreator($job) | User name of the person who created the job | jobCreator($job) | jdoe |
jobLocation($job) | Location defined for the job in MinX, MinY, MaxX, MaxY, WKID format | 'https://<WebAdaptorHost.Domain.com>/<PortalWebAdaptorName>/apps/webappviewer/index.html?extent=' + jobLocation($job) | 9862243.197380835,5108823.353604797,-9801843.791879544,5133768.0805264525,3857 |
jobExtendedProperty($job,'table1','field1') | Value of extended property for the job in epoch format | jobExtendedProperty($job,'purchase_order','date') | 1589414631 |