Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Workflow engines and Spring

  1. #1
    Join Date
    Aug 2004
    Posts
    229

    Default Workflow engines and Spring

    I'm curious if anyone here has experience using OpenWFE with Spring? On a related note, what workflow engines have people found to work well with Spring? OSWorkflow is tempting, since it works well with Spring, but it lacks certain features (such as task list management) that we would find extremely useful. On the other hand, OpenWFE seems to be a platform unto itself - a little more than we feel comfortable with, but provides tempting functionality.

    - Andy

  2. #2
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    Andy,

    I use OSWorkflow with Spring and I find it to be more than adequate for what I need. What do you mean by task list? Do you want to get a list of the inputs available for the current state or a list of past actions? Both of these can be done with OSWorkflow.

    Rob
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

  3. #3
    Join Date
    Aug 2004
    Posts
    229

    Default

    A workflow can employ both humans and other services/participants. In the end, what I want is to get a list of all outstanding states against a particular user. Say 10 different workflow instances are all waiting for "approval" from a particular user. When that user logs in, I want to present the user with their task list: the things waiting their attention. I had asked on the OSWorkflow list if OSWorkflow supports this. The response was, "no, but you can implement it by writing your own functions." Certainly an option, but other workflow engines can do this for me. Maybe the responder didn't understand my question?

    - Andy

  4. #4
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    I think you can do this... I'll take a look at it and see what I can come up with. To summarise you have multiple workflow instances for a given user. You want to get all these instances and display the current state from each along with the valid inputs, essentially building a task list.

    Rob
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

  5. #5
    Join Date
    Sep 2004
    Location
    Texas
    Posts
    155

    Default

    Quote Originally Posted by adepue
    Say 10 different workflow instances are all waiting for "approval" from a particular user. When that user logs in, I want to present the user with their task list: the things waiting their attention.
    I do this in my current app. When the user logs in, you call:

    Code:
    int[] currentSteps = workflow.getAvailableActions( workflowEntryId, new HashMap() );
    If currentsteps contains the step you are looking for (in this case, an 'awaiting approval' step), then add that workflow to the user's to-do list.

    The only extra step in your case is that you will need to assign the workflow to a specific user when it enters the 'awaiting approval' step. This can be done with Beanshell in your workflow .xml definition file, either by assigning a userId property to the workflow, or by using OSWorkflow's built-in OSUser integration.

  6. #6
    Join Date
    Nov 2004
    Posts
    159

    Default

    Hi,

    I'm working on a large scale project and we'll be using Spring, Hibernate and JBoss. We are currently in the early stage of evaluating jBPM as our workflow engine and i just came across OSWorkflow.

    jBPM is currently based jPDL and is not a standard. Does OSWorkFlow based on any major standards for BPM?

    Thanks!

  7. #7
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    Like jBPM, OSWorkflow has its own workflow definition language. If you are looking for standards based workflow then check Enhyrda Shark. This uses the WfMG standards for workflow definition and for plugins. However, I don't think it is as simple as either jBPM or OSWorkflow.

    Rob
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

  8. #8
    Join Date
    Nov 2004
    Posts
    159

    Default

    Thanks Rob.

    As there are different kinds of non-standard workflow engines in the market, i'm not sure which is the right choice.

    Has anyone used Enhydra Shark? If yes, what was the reason why you've choosed to use it? Did you evaluate other workflow engines before going for Enhydra shark?

    Could someone please share your experience on this?

    Thanks!

  9. #9
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    Andy,

    In response to your earlier query. You can access all active workflows for a user using the WorkflowExpressionQuery and from here you can iterate over the worklows and retrieve the list of current steps, from which you can get the statuses.

    Rob
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

  10. #10
    Join Date
    Aug 2004
    Posts
    229

    Default

    Thanks for the tips guys! OSWorkflow does indeed seem tempting due to its simplicity and integration with Spring.

Similar Threads

  1. Replies: 8
    Last Post: Feb 24th, 2005, 04:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •