This content has been marked as final.
Show 2 replies
-
1. Re: Getting context variable
roccolocko Mar 5, 2007 7:35 PM (in response to roccolocko)I don't know if anybody can see my posts, but here is the answer to my previous post in case somebody was wondering hehe
public class AmountUpdate implements ActionHandler { public void execute(ExecutionContext ctx) throws Exception { // business logic Float erpAmount = ...get amount from erp-system...; Float processAmount = (Float) ctx.getContextInstance().getVariable("amount"); float result = erpAmount.floatValue() + processAmount.floatValue(); ...update erp-system with the result...; // graph execution propagation if (result > 5000) { ctx.leaveNode(ctx, "big amounts"); } else { ctx.leaveNode(ctx, "small amounts"); } } }
-
2. Re: Getting context variable
kukeltje Mar 6, 2007 5:01 AM (in response to roccolocko)this is all in the documentation, examples, etc...etc...etc....