Skip to main content

Keep dates in sync with Standard Cyclical Schedules

This workflow is included in the Scheduling package.

Description​

Refresh attributes_standardCyclicalScheduleAllPlannedDates_8931cc4d3d0d87400bd35b4b when schedule changes.

Properties​

This workflow has the following properties.

PropertyValue
NameKeep dates in sync with Standard Cyclical Schedules
Codeworkflows_computePeriodicitiesStandardCyclical_8e12bdd046322a94d17e55ac
TypeWorkflow
ContextPackage
EnabledYes
TagsCauseway
Log retention7 days

Trigger​

The system triggers this workflow when items of the design below are created or edited. Where attributes are listed, an edit to anything else is ignored.

PropertyValue
Workflow typeEvent workflow
Applies toStandard Cyclical Schedules
EventsCreate, Edit
CollectionsLive
Attributes listened forattributes_scheduleStartsOn_8938a2342563580acb7d5ca5  (Starts On (Inclusive))
attributes_scheduleEndsOn_8f3ddb33870afa31cde2e449  (Ends On (Exclusive))
attributes_scheduleDates_8de88b7173c8a0a7ca743e7e  (Explicit Dates)
attributes_standardCyclicalScheduleInclusivePeriodicities_68132ec89b8145b312072f8a  (Inclusive Periodicities)
attributes_standardCyclicalScheduleExclusivePeriodicities_68132ec89b8145b312072f8b  (Exclusive Periodicities)
Output modeManyItems  (Runs once for all items)

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 (78 lines)
{
"trigger": {
"dodiCode": "designInterfaces_standardCyclicalSchedule_8df406ac30b303672ed6d907",
"collections": [
"Live"
],
"events": [
"Create",
"Edit"
],
"attributesListeningFor": [
"attributes_scheduleStartsOn_8938a2342563580acb7d5ca5",
"attributes_scheduleEndsOn_8f3ddb33870afa31cde2e449",
"attributes_scheduleDates_8de88b7173c8a0a7ca743e7e",
"attributes_standardCyclicalScheduleInclusivePeriodicities_68132ec89b8145b312072f8a",
"attributes_standardCyclicalScheduleExclusivePeriodicities_68132ec89b8145b312072f8b"
],
"outputMode": "ManyItems"
},
"actions": [
{
"actionId": "871c263c55b3fc98cc54ea40",
"designCode": "designs_computeDatesFromSchedules_8e51c150022e2c7e705e9223",
"comments": "Get all schedules dates",
"parameters": [
{
"attributeCode": "attributes_computeDatesFromSchedulesDateRangeStart_800d6f68feb01147ef0d2035",
"value": {
"inputParent": 0,
"itemValue": {
"attributeCode": "attributes_scheduleStartsOn_8938a2342563580acb7d5ca5"
}
},
"attributeType": "Date"
},
{
"attributeCode": "attributes_computeDatesFromSchedulesDateRangeEnd_81c4dd81e998b56ddfe158ab",
"value": {
"inputParent": 0,
"itemValue": {
"attributeCode": "attributes_scheduleEndsOn_8f3ddb33870afa31cde2e449"
}
},
"attributeType": "Date"
}
],
"actions": []
},
{
"actionId": "89723173e526a1e5957edb32",
"designCode": "designs_workflowEditItemAction",
"comments": "Update schedules all planned dates",
"parameters": [
{
"attributeCode": "attributes_standardCyclicalScheduleAllPlannedDates_8931cc4d3d0d87400bd35b4b",
"value": {
"script": "new { dates = Variables.scheduleDates.AllValues.Values.Select(x => x.SingleValue).ToArray() }"
},
"attributeType": "Json"
}
],
"variables": [
{
"name": "scheduleDates",
"value": {
"outputAction": "871c263c55b3fc98cc54ea40",
"outputMode": "Input",
"itemValue": {
"attributeCode": "attributes_computeDatesFromSchedulesOutputDateOccurance_8ad5639456d15a25d67516c5"
}
},
"attributeType": "Date"
}
],
"actions": []
}
]
}