Hi all.
I have an class for action event in GPD.
| <event type="task-create">
| <action class="jbpm.Create"/>
| </event>
Class:
| public class Create implements ActionHandler {
|
| private static final long serialVersionUID = 1L;
|
| public void execute(ExecutionContext executionContext) throws
Exception {
| System.out.println("=======");
| ArrayList list=new ArrayList();
| list.add("first");
| list.add("second");
| executionContext.setVariable("list", list);
| System.out.println("===================");
| }
| }
And then in TaskBean.java of jbpm.war
in initialize() function i add:
| System.out.println("====== read my data =======");
|
| myData = (List)taskInstance.getVariable("list");
| if (myData!=null){
| for (int i=0;i<myData.size();i++){
| System.out.println((String)myData.get(i));
| }
| }
| System.out.println("============================");
This code is correct but myData is null.
Why? I am wrong?
Help me please.
Thanks
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3910184#3910184
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3910184
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user