Question

I have to achieve the following: Once a calendar event is created, start a workflow in which the assigned users (submitted with the form) are added to the workflow. What I'm thinking to do is: 1 - to store the properties required for workflow in an aspect attached to the calendar then, 2 - to start the workflow from an addAspect behaviour and (associate it with the calendar event) 3 - then in an association behaviour add person(s) to the workflow as they're associated with the workflow.

I'm thinking this requires me to associate calendar-event => workflow in a source => target relationship so that as people are added, they're subscribed to the same behaviour policies.

Was it helpful?

Solution

You can add any nodeRef in de bpm_package. OOTB it's for example not possible to start a workflow on a folder. So starting the workflow from a JavaScript action you can do anything, like execute it on a calendar item (which is a node).

Create a calendar item and you'll see that via the Repository browser under the site/calendar a new .ics file has been created which is your node.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top