Alloy - Night Patrol Create
This workflow is included in the Night Patrols package.
Description
Generates a Night Patrol from given streetLights, and generates tasks for all of them.
Properties
This workflow has the following properties.
| Property | Value |
|---|---|
| Name | Alloy - Night Patrol Create |
| Code | workflows_generateNightPatrol_805eef742bcc29030a627158 |
| Type | Workflow |
| Context | Package |
| Enabled | Yes |
| Tags | Causeway |
| Runs on | Working days and hours only (Both) |
| Log retention | 30 days |
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 | Street Lights |
| Output mode | ManyItems (Runs once for all items) |
| Parameters design | ParameterDesign - Alloy - Night Patrol Create |
Actions
This workflow runs 2 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 (97 lines)
{
"trigger": {
"dodiCode": "designs_streetLights",
"parametersDesignCode": "designs_pdGenerateNightPatrol_88c2cae133b0a129e8d59af5",
"outputMode": "ManyItems"
},
"actions": [
{
"actionId": "805ef0097dd947035ae772e3",
"designCode": "designs_workflowCreateItemAction",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowCreateItemActionsDesignCode",
"value": "designs_nightPatrols_8bcf2c5cac22af02b9d71061",
"attributeType": "String"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowCreateItemActionsCollection",
"value": "Live",
"attributeType": "String"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowCreateItemActionsSingleInstance",
"value": true,
"attributeType": "Boolean"
}
},
{
"attributeCode": "attributes_nightPatrolsPatrolList_8528cb6653b4d7e6a7ac2046",
"value": {
"inputParent": 0,
"itemValue": {
"property": "ItemId"
}
},
"attributeType": "Link"
},
{
"attributeCode": "attributes_nightPatrolsName_8228cba653b4d7efa7ac10b1",
"value": {
"script": "return Variables.patrolName.AllValues.Values.Select(x => x.SingleValue).FirstOrDefault();"
},
"attributeType": "String"
}
],
"variables": [
{
"name": "patrolName",
"value": {
"parameterCode": "attributes_pdGenerateNightPatrolName_82c4e23323045215716d9709",
"inputMode": "Each"
},
"attributeType": "String"
}
],
"actions": []
},
{
"actionId": "8b052f2440f75f176cf8c690",
"designCode": "designs_pdMwrCloneTasks_88c2cae133b0a129e8d59af5",
"comments": "Clone from the task type",
"parameters": [
{
"attributeCode": "attributes_pdMwrCloneTasksTaskTypeMapping_82c4e2a3d30d521b74ddac7c",
"value": {
"parameterCode": "attributes_pdGenerateNightPatrolTaskType_83c4e293230d521b71dd9c88",
"inputMode": "Each"
},
"attributeType": "Link"
},
{
"attributeCode": "attributes_pdMwrCloneTasksParent_8a01f9693ca42ee2fa294d20",
"value": {
"inputParent": 0,
"itemValue": {
"property": "ItemId"
}
},
"attributeType": "Link"
},
{
"attribute": {
"attributeCode": "attributes_pdMwrCloneTasksParentAttributeCode_85c17f89d036dc16cfa6be82",
"value": "attributes_tasksAssignableTasks"
}
}
],
"variables": [],
"actions": []
}
]
}