[jboss-user] [JBoss jBPM] - Variables in expressions are not deserialized?

2008-03-03 Thread mimiru
I noticed something odd. I was trying to use a decision node which had a 
transition that checked a boolean process variable and a default transition.

the syntax of the expression used: #{off}

when running a process instance and toggling the value of off the default 
transition is always taken, now i know that the variable is toggled since i 
used a global event type node-enter that outputs the value of off to the 
console, however i noticed the value is serialized.

so now i was wondering if the value is not deserialized when being accessed in 
the expression or something else is amiss.

for now i use a handler, and it works, but i rather use the xml to reduce the 
number of classes needed.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4133575#4133575

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133575
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Creating new node

2008-03-02 Thread mimiru
Hello all

I read the documentation at http://docs.jboss.com/jbpm/v3.2/userguide/html/. It 
mentions that nodetype node can have customized behavior when it comes to 
creating new execution paths in the form of a token, also this behavior must be 
programmed in an action handler.

The node behavior I want to create is when a token arrives, a new token is 
created and passed on to a leaving transition, the arrived token is passed over 
the default leaving transition (eventually i will be expanding this to allow 
for any number of new tokens and any number of leaving transitions).

token   token
- [Split] - ...
| new token
 \---  ... - [end-state]

I implemented this in the execute method like this:

Token newToken = new Token(executionContext.getToken(), split);
ExecutionContext newContext = new ExecutionContext(newToken);
executionContext.leaveNode();
newContext.leaveNode(split);

When I run the process I can see that the new tokens are produced and indeed 
arrive in the end state all seems to be in order as far as I can tell.

Except that calling 
JbpmContext.getGraphSession().deleteProcessInstance(theInstanceContainingSplitId)
 (this I use to remove the process from the database while testing) throws a 
database constraint exception on the foreign key for the token table. Is this 
because I am doing something wrong while producing the new tokens or is this 
some bug?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4133506#4133506

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133506
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Creating new node

2008-03-02 Thread mimiru
Did not notice that white-space is trimmed on the forum (replacing white space 
with _)

token_token
-[Split] - ...
___| new token
___\ ... --- [end-state]


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4133507#4133507

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133507
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user