Manual Trigger for Raise Job on Contract
This workflow is included in the Contracts module.
Description
Manually triggers the Raise Job on Contract workflow.
Properties
This workflow has the following properties.
| Property | Value |
|---|---|
| Name | Manual Trigger for Raise Job on Contract |
| Code | workflows_manualTriggerRaiseJobOnContract |
| 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 Raise Job on Contract |
Actions
This workflow runs 5 actions, in the order shown in this simplified diagram. Select an MWR action to open the workflow it runs. Every action's full settings are in the configuration below.
Configuration
The full configuration of this workflow, including every action's parameters.
Show configuration (136 lines)
{
"trigger": {
"dodiCode": "designInterfaces_jobsWithContracts",
"outputMode": "ManyItems",
"parametersDesignCode": "designs_MTPRaiseJobOnContract"
},
"actions": [
{
"actionId": "685ad340de0bf8df53a01507",
"designCode": "designs_workflowFilterAction",
"description": "Filter jobs without contractor status set",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"attributeType": "Aqs",
"value": {
"type": "Query",
"properties": {
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
],
"collectionCode": "Live",
"dodiCode": "designInterfaces_jobsWithContracts"
},
"children": [
{
"type": "NotExists",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_jobsWithContractsContractorStatus"
}
}
]
}
]
}
}
}
],
"variables": [],
"actions": [
{
"actionId": "685ad340de0bf8df53a01500",
"designCode": "designs_MTPPrepareRaiseJobOnContractMessage",
"description": "MWR action call to prepare Raise Job on Contract Message",
"parameters": [],
"variables": [],
"actions": [
{
"actionId": "685ad340de0bf8df53a01501",
"designCode": "designs_workflowPublishMessageAction",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowPublishMessageActionsWidenInputDesignCode",
"attributeType": "String",
"value": "designs_standardRaiseJobOnContract"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowPublishMessageActionsDesignCode",
"attributeType": "String",
"value": "designs_causewayItemPlaceholder"
}
}
],
"variables": [],
"actions": []
},
{
"actionId": "685ad340de0bf8df53a01505",
"designCode": "designs_workflowOutputAction",
"description": "Output the jobsWithContracts from the trigger",
"parameters": [
{
"attributeCode": "attributes_workflowOutputActionItems",
"attributeType": "Link",
"value": {
"inputParent": 1,
"itemValue": {
"property": "ItemId"
}
}
},
{
"attribute": {
"attributeCode": "attributes_workflowOutputActionDodiCode",
"attributeType": "String",
"value": "designInterfaces_jobsWithContracts"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowOutputActionSingleInstance",
"attributeType": "Boolean",
"value": false
}
}
],
"variables": [],
"actions": [
{
"actionId": "685ad340de0bf8df53a01506",
"designCode": "designs_workflowEditItemAction",
"description": "Set Contractor Status to Sent on jobWithContracts",
"parameters": [
{
"attributeCode": "attributes_jobsWithContractsContractorStatus",
"value": {
"script": "return Set(AlloyId(\"698c6dc40edbc12bfe15f140\"));",
"returnOptions": {
"code": "designs_contractorStatus",
"graph": "Lookup",
"weakReference": true,
"max": 1
}
},
"attributeType": "Link"
}
],
"variables": [],
"actions": []
}
]
}
]
}
]
}
]
}