[jboss-user] [jBPM] New message: "Java Activity array args...how to?"
ciccio ciccio
do-not-reply at jboss.com
Mon Feb 1 08:46:20 EST 2010
User development,
A new message was posted in the thread "Java Activity array args...how to?":
http://community.jboss.org/message/523358#523358
Author : ciccio ciccio
Profile : http://community.jboss.org/people/ciccioVega
Message:
--------------------------------------------------------------
Hi, im new of forum and of JBPM, i've tried to create a HelloWorld process but i had a problem: how to pass string array to java activity method??
my process is:
<?xml version="1.0" encoding="UTF-8"?>
<process name="helloworld" xmlns="http://jbpm.org/4.3/jpdl">
<start g="13,156,48,48" name="start1">
<transition g="-55,-18" name="to request" to="request"/>
</start>
<java class="org.jbpm.helloworld.Println" continue="sync" g="163,114,75,52" method="request" name="request">
<arg>
...... (i'm missing here!!)
</arg>
<transition g="-42,-18" name="to end1" to="end1"/>
</java>
<end g="387,182,48,48" name="end1"/>
</process>
and my method is:
public void request(String[] var) {
try {
System.out.println("INIZIO");
Example example = new Example(var);
System.out.println("FINITO");
} catch (Exception e) {
System.out.println("EXCEPTION: "+e.getClass().getName());
e.printStackTrace();
}
Thanks for help.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523358#523358
More information about the jboss-user
mailing list