Update next date for Generation Frequencies
This workflow is included in the Scheduling package.
Description
Update attributes_periodicityNextDate_8b766935838e7116fb62e7c0 for Generation Frequencies.
Properties
This workflow has the following properties.
| Property | Value |
|---|---|
| Name | Update next date for Generation Frequencies |
| Code | workflows_updateNextDateForGenerationFrequencies_8706d5205143134c25c4f3b1 |
| Type | Workflow |
| Context | Package |
| Enabled | Yes |
| Tags | Causeway |
| Log retention | 7 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 | Periodicities |
| Output mode | ManyItems (Runs once for all items) |
| Parameters design | MTP - Update next date for Generation Frequencies |
| Output action | The Output action highlighted in the diagram below |
Actions
This workflow runs 4 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 (124 lines)
{
"trigger": {
"dodiCode": "designs_periodicity_8f3183380533b281ac719c10",
"parametersDesignCode": "designs_updateNextDateForGenerationFrequencies_8706d5205143134c25c4f3b1",
"outputActionId": "85540663ff9206cb951a884f",
"outputMode": "ManyItems"
},
"actions": [
{
"actionId": "855ee3e27371ee912e8e2771",
"designCode": "designs_workflowQueryAction",
"comments": "Query all periodicities used as Generation Frequencies",
"variables": [],
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowQueryActionsSingleInstance",
"value": true
}
},
{
"attribute": {
"attributeCode": "attributes_workflowQueryActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"collectionCode": "Live",
"dodiCode": "designs_periodicity_8f3183380533b281ac719c10"
},
"children": [
{
"type": "Exists",
"children": [
{
"type": "ItemProperty",
"properties": {
"itemPropertyName": "itemId",
"path": "root^attributes_scheduleGenerationFrequency_85e3a5bd733c864694ecffbd"
}
}
]
}
]
}
}
}
],
"actions": [
{
"actionId": "855ee3e37371ee91ce8e2d73",
"designCode": "designs_computeDatesFromPeriodicities_874950917130ef4b6ae2e28c",
"comments": "Get periodicity's next date",
"parameters": [
{
"attributeCode": "attributes_computeDatesFromPeriodicitiesDateRangeStart_800d6f68feb01147ef0d2035",
"value": {
"offsetMilliseconds": 0
},
"attributeType": "Date"
},
{
"attribute": {
"attributeCode": "attributes_computeDatesFromPeriodicitiesLimit_8f4d17da8e3a79f4d3fa840b",
"value": 1
}
}
],
"actions": []
},
{
"actionId": "85540663ff9a06cb951c8849",
"designCode": "designs_workflowEditItemAction",
"comments": "Set periodicity's next date",
"parameters": [
{
"attributeCode": "attributes_periodicityNextDate_8b766935838e7116fb62e7c0",
"value": {
"outputAction": "855ee3e37371ee91ce8e2d73",
"outputMode": "Input",
"itemValue": {
"attributeCode": "attributes_computeDatesFromPeriodicitiesOutputDateOccurance_8ad5639456d15a25d67516c5"
}
},
"attributeType": "Date"
}
],
"actions": []
}
]
},
{
"actionId": "85540663ff9206cb951a884f",
"designCode": "designs_workflowOutputAction",
"comments": "Output the periodicities",
"parameters": [
{
"attributeCode": "attributes_workflowOutputActionItems",
"value": {
"outputAction": "85540663ff9a06cb951c8849",
"outputMode": "All",
"itemValue": {
"property": "ItemId"
}
},
"attributeType": "Link"
},
{
"attribute": {
"attributeCode": "attributes_workflowOutputActionDodiCode",
"value": "designs_periodicity_8f3183380533b281ac719c10",
"attributeType": "String"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowOutputActionSingleInstance",
"value": true
}
}
],
"actions": []
}
]
}