This content has been marked as final.
Show 4 replies
-
1. Re: How to get parameters in script action
swiderski.maciej Jan 21, 2013 4:21 AM (in response to martin_2013)the way you do it is the right way only thing that comes to my mind seeing this is that Person class is either not available on class path or it is not declared as type (using FQN). Check here as it can be done.
HTH
-
2. Re: How to get parameters in script action
martin_2013 Jan 21, 2013 8:57 AM (in response to martin_2013)Thank you for your answer, Swiderski.
I read the document of jbpm5.4 and find the following paragraphs:
How to predefine variable kcontext?
-
3. Re: How to get parameters in script action
swiderski.maciej Jan 21, 2013 9:25 AM (in response to martin_2013)as far as I know kcontext is only available in process scope so if you would use java based condition then you could directly take advantage of kcontext variable but within rules you need to insert process instance into the ksession before you can make use of it.
HTH
-
4. Re: How to get parameters in script action
martin_2013 Jan 22, 2013 9:08 PM (in response to swiderski.maciej)Thank you.
I try to use directly variable kcontext in a script action.It's a success.