IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Subscribe to task state events

  • 1.  Subscribe to task state events

    Posted Sat November 16, 2013 04:34 PM

    Hello all,

    I would like to be able to implement certain functions in the task engine that apply to all task types. I would like to subsribe to all task change events without having to configure that in each task type definition.

    I know that there are global rule definitions in task engine that look promising for what I want to achieve but I have no idea on how to call a custom service from it.

    I also think that the task engine emits JMS messages on such task state changes. Is that true? How can I subscribe to such events.

    Thanks for any helpful input on this.

    Mathias


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 2.  RE: Subscribe to task state events

    Posted Tue December 10, 2013 02:46 PM

    One of our top consultants came up with this solution:

    However, I wanted you to know that a colleague has found an alternative way of implementing this functionality, through Rule Contexts. Apparently, one can:
    • Create a dummy task type. e.g. “TaskForGlobalThings”
    • Create a method in its RuleContext class, e.g. “taskChanged”
    • Once this task is deployed, you can call this method from a global task rule with an expression such as “#{TaskForGlobalThingsRuleContext.taskChanged}” . Also, in that method, besides accessing the oldTask and the newTask through EL evaluation, you also can call getCurrentTask() to retrieve the current task data.

    Which I guess it is something that anybody can use now, at least from 8.0 onwards.


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 3.  RE: Subscribe to task state events

    Posted Thu December 12, 2013 06:05 AM

    Great - thanks.

    I will try this solution proposal.


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine