This content has been marked as final.
Show 2 replies
-
1. Re: process behavior
kukeltje Jun 4, 2007 1:19 PM (in response to ricardomarques)I guess that it should give me this results, because i'm not on the node "evaluate request" (i guess).
you probably meant to say: I guess that it should NOT give me this results, because i'm not on the node "evaluate request" (i guess).
Well, don't guess, be sure... turn up the log level to debug (log4j), see what happens.... report back with your own analysis of the log, not just post the log itself without that.
And... how do you start the instance? form a your own code? Then analyse that to, compare your code to the testcases etc... and post it. You could do several things (e.g. a 'signal' to much) that result in the behaviour you see. They are probably wrong for what you try to achieve (So an ebkac) but jBPM most likely behaves as it should be since it is such a basic error -
2. Re: process behavior
ricardomarques Jun 5, 2007 6:45 AM (in response to ricardomarques)Ronald, thanks for your answer...
"kukeltje" wrote:
you probably meant to say: I guess that it should NOT give me this results, because i'm not on the node "evaluate request" (i guess).
Yup you are right :)"kukeltje" wrote:
Well, don't guess, be sure... turn up the log level to debug (log4j), see what happens.... report back with your own analysis of the log, not just post the log itself without that.
Well, I'm still begining in jbpm so... my interpretation of the logs doesn't tell me much, yet on the database, the task instance for my current process instance is pointig to entry evaluation that means his bypass the first node.
About my code:
I'm using this code to start a instance and get it on my task lisk:cmd = new StartProcessInstanceCommand(); cmd.setProcessId(Long.parseLong(pid)); cmd.setActorId(userName); getCommandService().execute(cmd);
To start a work on a task I use:Command cmd = new StartWorkOnTaskCommand(this.getTid(), false);
where this.tid, is the task instance id, and then to get the transitions:this.availableTransitions = new ArrayList<Transition>(); Iterator iter = tl.iterator(); while (iter.hasNext()) { Transition transition = (Transition) iter.next(); availableTransitions.add(transition); }
I agree with you Ronald when u say that is a basic error, but we get lots of those when we are learning.
Thanks in advance