#
mgaerber
Some ideas to make Cuyahoga fit for workflows:
The only information the worfkfow engine (WE) should manage and be able to provide is the state of process execution and who is due do what at a certain point of execution.
1.) The WE needs access to a global repository of users/roles
2.) Generic handlers need to be registered with the WE up front which will be called at gaining a certain state.
The Cuyahoga specific user repository needs to be hidden away from the WE.
--> Interfaces for Users/Roles/Membership
Handlers could be delegating to any kind of IT-System. Actually they will (at the moment) only delegating to Cuyahoga.
--> Defining Cuyahoga handlers
Example 1, Content Approval

So, stepping through the process, this would look something like this:
-The editor clicks the edit button for some content, the process is started
and the flow control transferred to the WE
- The WE calls the "content submission" handler, which on Cuyahoga's side means to provide an edit form or similar
- The editor enters the content and clicks the save button, the handler returns with the result "submitted"
- The WE calls the "content evaluation" handler, which returns with one of two defined results. In Cuyahoga this could mean, adding a task to the publisher's task list, which enables the publisher to access the edit and add the required information.
- At this point, further handlers could be called, for example notifying the actors of the result but essentially the process ends here
Notes:
As the editor could "cancel" his submission, the WE needs to be able to cancel the process, too. This is left out on this diagram.
In case of an error, a generic error handler will be called.
Authorization (e.g. what is allowed to change on the edit form) in this model lies in the responsibility of the respecitve handler (or the IT-System behind it).
The only information the worfkfow engine (WE) should manage and be able to provide is the state of process execution and who is due do what at a certain point of execution.
1.) The WE needs access to a global repository of users/roles
2.) Generic handlers need to be registered with the WE up front which will be called at gaining a certain state.
The Cuyahoga specific user repository needs to be hidden away from the WE.
--> Interfaces for Users/Roles/Membership
Handlers could be delegating to any kind of IT-System. Actually they will (at the moment) only delegating to Cuyahoga.
--> Defining Cuyahoga handlers
Example 1, Content Approval

So, stepping through the process, this would look something like this:
-The editor clicks the edit button for some content, the process is started
and the flow control transferred to the WE
- The WE calls the "content submission" handler, which on Cuyahoga's side means to provide an edit form or similar
- The editor enters the content and clicks the save button, the handler returns with the result "submitted"
- The WE calls the "content evaluation" handler, which returns with one of two defined results. In Cuyahoga this could mean, adding a task to the publisher's task list, which enables the publisher to access the edit and add the required information.
- At this point, further handlers could be called, for example notifying the actors of the result but essentially the process ends here
Notes:
As the editor could "cancel" his submission, the WE needs to be able to cancel the process, too. This is left out on this diagram.
In case of an error, a generic error handler will be called.
Authorization (e.g. what is allowed to change on the edit form) in this model lies in the responsibility of the respecitve handler (or the IT-System behind it).