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.
| Property | Value |
|---|---|
| Name | Contractor Status Changed in Job |
| Code | workflows_contractorStatusChangedInJob |
| Type | Workflow |
| Context | Module |
| Enabled | Yes |
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.
| Property | Value |
|---|---|
| Workflow type | Manual workflow |
| Applies to | Jobs with Contracts |
| Output mode | ManyItems (Runs once for all items) |
| Parameters design | MTP 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": []
}
]
}