JBoss Community

Can I invoke a WorkItemHandler's execute method directly from a script task ?

created by ashish yannam in jBPM Development - View the full discussion

I am having a BusinessRuleTask which is going to execute some rules. But before executing the rule, I want to do some pre-processing on the Object, whose properties i will be reading in the rule.

I am thinking of Implementing a generic pre-processing business logic in the WorkItemHandler implementation class.

I have the java WorkItemHandler implementation class ready. But I am not sure how do I invoke it from a script task OR from the BusinessRuleTask's OnEntry java script.

Reply to this message by going to Community

Start a new discussion in jBPM Development at Community