CYP SE - duplicate SE inspections added
This workflow is included in the Local Government Essentials - Service Enquiries package.
Description
This workflow has no description.
Properties
This workflow has the following properties.
| Property | Value |
|---|---|
| Name | CYP SE - duplicate SE inspections added |
| Code | workflows_cYPSEDuplicateEnquiriesAdded_89a0ee55d2f4d33902dceb73 |
| Type | Workflow |
| Context | Package |
| Enabled | Yes |
| Tags | Causeway, Causeway Service Enquiries |
| Log retention | 60 days |
Trigger
The system triggers this workflow when items of the design below are edited. Where attributes are listed, an edit to anything else is ignored.
| Property | Value |
|---|---|
| Workflow type | Event workflow |
| Applies to | Service enquiry inspections |
| Events | Edit |
| Collections | Live |
| Attributes listened for | attributes_serviceEnquiryInspectionsDuplicateEnquiries_8ca82728b1cc076fda9c8df2 (Select parent inspection (if duplicate)) |
| Output mode | ManyItems (Runs once for all items) |
| Can be triggered by other workflows | Yes (indirectly, via item changes) |
Actions
This workflow runs 7 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 (192 lines)
{
"trigger": {
"dodiCode": "designInterfaces_serviceEnquiryInspections_87b4243115f727f606fd8127",
"collections": [
"Live"
],
"events": [
"Edit"
],
"attributesListeningFor": [
"attributes_serviceEnquiryInspectionsDuplicateEnquiries_8ca82728b1cc076fda9c8df2"
],
"outputMode": "ManyItems",
"canBeTriggeredByWorkflows": true
},
"actions": [
{
"actionId": "8f14437d2742807d168948f6",
"designCode": "designs_workflowRelationAction",
"description": "go to parent inspection",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_serviceEnquiryInspectionsDuplicateEnquiries_8ca82728b1cc076fda9c8df2",
"attributeType": "Link"
}
}
],
"variables": [],
"actions": [
{
"actionId": "86d34345da0c9ad73b144f6c",
"designCode": "designs_workflowRelationAction",
"description": "Go to parent service enquiry (defect)",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root^attributes_defectsWithInspectionsDefectInspection<designs_serviceEnquiries_882914a8a671eb6a4bfe3893>",
"attributeType": "Link"
}
}
],
"variables": [],
"actions": [
{
"actionId": "811e2f2a665467a633d6fbae",
"designCode": "designs_workflowRelationAction",
"description": "go to child jobs",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_defectsRaisingJobsRaisedJobs",
"attributeType": "Link"
}
}
],
"variables": [],
"actions": []
}
]
}
]
},
{
"actionId": "8b2e6f726fcc04dfcf200bbd",
"designCode": "designs_workflowRelationAction",
"description": "Get duplicate service enquiry",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root^attributes_defectsWithInspectionsDefectInspection<designs_serviceEnquiries_882914a8a671eb6a4bfe3893>",
"attributeType": "Link"
}
}
],
"variables": [],
"actions": [
{
"actionId": "897fd734bc8140b406df23ee",
"designCode": "designs_workflowAddLinks",
"description": "Copy Inspections",
"parameters": [
{
"attributeCode": "attributes_workflowActionAddLinksItemsCode",
"attributeType": "Link",
"value": {
"outputAction": "8f14437d2742807d168948f6",
"itemValue": {
"property": "ItemId"
},
"outputMode": "Input"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowActionPatchLinkAttributeCode",
"value": "attributes_defectsWithInspectionsDefectInspection",
"attributeType": "String"
}
}
],
"variables": [],
"actions": []
},
{
"actionId": "8d7714693db353595fe77141",
"designCode": "designs_workflowAddLinks",
"description": "Copy Jobs",
"parameters": [
{
"attributeCode": "attributes_workflowActionAddLinksItemsCode",
"attributeType": "Link",
"value": {
"outputAction": "811e2f2a665467a633d6fbae",
"itemValue": {
"property": "ItemId"
},
"outputMode": "Input"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowActionPatchLinkAttributeCode",
"value": "attributes_defectsRaisingJobsRaisedJobs",
"attributeType": "String"
}
}
],
"variables": [],
"actions": []
},
{
"actionId": "821225c6df6cf387007c7311",
"designCode": "designs_workflowEditItemAction",
"description": "Copy over the rest of the details",
"parameters": [
{
"attributeCode": "attributes_serviceEnquiriesFeedback_87ce5dc68af938115b8e3093",
"attributeType": "String",
"value": {
"outputAction": "86d34345da0c9ad73b144f6c",
"itemValue": {
"attributeCode": "attributes_serviceEnquiriesFeedback_87ce5dc68af938115b8e3093"
},
"outputMode": "Input"
}
},
{
"attributeCode": "attributes_defectsRemediedDate",
"attributeType": "DateTime",
"value": {
"outputAction": "86d34345da0c9ad73b144f6c",
"itemValue": {
"attributeCode": "attributes_defectsRemediedDate"
},
"outputMode": "Input"
}
},
{
"attributeCode": "attributes_defectsStatus",
"attributeType": "Link",
"value": {
"outputAction": "86d34345da0c9ad73b144f6c",
"itemValue": {
"attributeCode": "attributes_defectsStatus"
},
"outputMode": "Input"
}
},
{
"attributeCode": "attributes_serviceEnquiriesOutcome_82027e365107da7e4df0db7f",
"attributeType": "Link",
"value": {
"outputAction": "86d34345da0c9ad73b144f6c",
"itemValue": {
"attributeCode": "attributes_serviceEnquiriesOutcome_82027e365107da7e4df0db7f"
},
"outputMode": "Input"
}
}
],
"variables": [],
"actions": []
}
]
}
]
}