[jboss-user] [jBPM] - call function in guvnor rules
Johanna Voxy
do-not-reply at jboss.com
Thu Apr 1 12:44:29 EDT 2010
Johanna Voxy [http://community.jboss.org/people/voxy] created the discussion
"call function in guvnor rules"
To view the discussion, visit: http://community.jboss.org/message/535231#535231
--------------------------------------------------------------
Hi guy,
does anyone knows how to call a function in guvnor's rules?
i'm trying to do something approximatively like that :
*function :*
function void choosegame (String game){
int startgame=0;
if ( game == "basic")
system.out.print (MessageBasic);
startgame = 1;
}
*rule :*
rule "basic game "
When :
Player( NewPlayer : level =="beginner");
Then :
Player fact0 = new Player();
fact0.setStatus( "basic" );
insert(fact0 );
choosegame (basic);
end
but it doesn't work.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/535231#535231]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100401/aa4f83f4/attachment.html
More information about the jboss-user
mailing list