Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Workflow » Task and Session Management Using Workflow
Task and Session Management Using Workflow [message #783] Mon, 23 April 2007 02:27 Go to next message
nnones is currently offline  nnones
Messages: 5
Registered: January 2007
Location: Thailand
Junior Member
I'd appreciate feedback that Tony (or anyone else) can give on the approach we're taking for managing tasks and sessions using workflow.

The issue is: when a transition is fired and it launches Task X, how should the workflow routing and/or navigation be set up when Task X has one or more navigation buttons? A navigation button will always launch another task; say, Task Y, that the workflow engine (which is listening to Task X) won't know anything about.

I think the solution is to treat Task Y as a child of Task X, instead of making it part of the workflow. Consequently it should navigate back to its parent Task X (using the getPreviousTask function, for instance) when it’s finished. In explicit OR split situations, Task X, in turn, should inspect one or more session variables set in Task Y to determine the appropriate routing. I believe this approach is feasible because of the way Radicore manages tasks and sessions; i.e. when you invoke a child task, the parent task is suspended but its state is still retained in the session variables, so when you navigate back to the parent from the child it resumes where it left off.

We are going to conduct some experiments using this approach and of course I will share the results of those experiments on this Forum. In the meantime, however, I'd appreciate knowing if there are any better (proven) ways of addressing this issue.
Re: Task and Session Management Using Workflow [message #784 is a reply to message #783] Mon, 23 April 2007 04:08 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2347
Registered: April 2006
Location: Surrey, UK
Senior Member
Why should the fact that a task in a workflow calls other tasks via navigation or popup buttons have any effect on the workflow? The whole purpose of a workflow is to identify tasks which must take place in a specific sequence, with the option to direct the sequence down different paths depending on certain conditions.

Take for example the simple sequence of Task A -> Task B. This says that when Task A is finished the workflow moves on to Task B. The fact that while processing Task A it was necessary to branch out to other tasks is totally irrelevant - this is simply activity within Task A that happens before Task A is completed.

The workflow system tells the user "you need to complete Task A", and it will not do anything else until that task is completed, which is recognised with a database update. Anything which happens before the task is completed is of no concern to the workflow system.


Re: Task and Session Management Using Workflow [message #785 is a reply to message #784] Mon, 23 April 2007 04:31 Go to previous message
nnones is currently offline  nnones
Messages: 5
Registered: January 2007
Location: Thailand
Junior Member
Tony, like you, I don't see any reason why some other task or navigation button should affect a workflow. So, it seems that you agree with the approach I suggested but I will go ahead and share the results of our experiments in the Forum anyway for the benefit of all.

Thanks for clarifying this so quickly.
Previous Topic: Trigger Message to send e-mail
Next Topic: Problem with db
Goto Forum:
  


Current Time: Fri Mar 29 06:11:01 EDT 2024

Total time taken to generate the page: 0.01023 seconds