Skip to main content

Contractor Status Changed in Job

This workflow is included in the Contracts module.

Description​

Handles CPA status changes.

Properties​

This workflow has the following properties.

PropertyValue
NameContractor Status Changed in Job
Codeworkflows_contractorStatusChangedInJob
TypeWorkflow
ContextModule
EnabledYes

Trigger​

A user triggers this workflow on demand, or another workflow runs it (via an MWR). It works on the items of the design below.

PropertyValue
Workflow typeManual workflow
Applies toJobs with Contracts
Output modeManyItems  (Runs once for all items)
Parameters designMTP Contractor Status Changed in Job

Actions​

This workflow runs 3 actions, in the order shown in this simplified diagram. Every action's full settings are in the configuration below.

Configuration​

The full configuration of this workflow, including every action's parameters.

Show configuration (100 lines)
{
"trigger": {
"dodiCode": "designInterfaces_jobsWithContracts",
"outputMode": "ManyItems",
"parametersDesignCode": "designs_MTPContractorStatusChangedInJob"
},
"actions": [
{
"actionId": "685ad340de0bf8df53a01510",
"designCode": "designs_workflowQueryAction",
"description": "Find CPA Status matching the parameter StatusCode",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowQueryActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"collectionCode": "Live",
"dodiCode": "designs_cpaStatus",
"parameters": [
{
"name": "statusCode",
"type": "String",
"defaultValue": "",
"title": "CPA Status Code"
}
]
},
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_cpaStatusCpaStatus"
}
},
{
"type": "String",
"properties": {
"parameterName": "statusCode"
}
}
]
}
]
}
}
}
],
"variables": [
{
"name": "statusCode",
"value": {
"parameterCode": "attributes_MTPContractorStatusChangedInJobStatusCode",
"inputMode": "Each"
}
}
],
"actions": [
{
"actionId": "685ad340de0bf8df53a01511",
"designCode": "designs_workflowRelationAction",
"description": "Navigate to Equivalent Contractor Status",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_cpaStatusEquivalentContractorStatus"
}
}
],
"variables": [],
"actions": []
}
]
},
{
"actionId": "685ad340de0bf8df53a01512",
"designCode": "designs_workflowEditItemAction",
"description": "Assign Contractor Status to Job",
"parameters": [
{
"attributeCode": "attributes_jobsWithContractsContractorStatus",
"attributeType": "Link",
"value": {
"outputAction": "685ad340de0bf8df53a01511",
"itemValue": {
"property": "ItemId"
}
}
}
],
"variables": [],
"actions": []
}
]
}