[jboss-user] [jBPM] - How to use a custom object as process variable
Shamal Karunarathne
do-not-reply at jboss.com
Fri Jun 29 02:32:41 EDT 2012
Shamal Karunarathne [https://community.jboss.org/people/shamalk] created the discussion
"How to use a custom object as process variable"
To view the discussion, visit: https://community.jboss.org/message/744959#744959
--------------------------------------------------------------
Hi,
I want to use me.bpm.test.Application as a variable for a process. I'm fully using the web based guvnor designer to design the process.
package me.bpm.test
public class Application
{
public String firstName;
public String lastName;
public Date dateOfBirth;
public String address;
public boolean isApproved = false;
public int getAge()
{
int age;
// some code to calculate age using dateOfBirth
return age;
}
}
1. How do I add this class to Guvnor and/or JBPM Console so that in the runtime console can use the class.
2. How do I define the Mapping (assignment, DataInputSet, DataOutputSet) from freeform templates (.flt) to the process level object? Can I use firstName_out->Application.firstName ?
Thanks in Advanced.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/744959#744959]
Start a new discussion in jBPM at Community
[https://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/20120629/64532906/attachment.html
More information about the jboss-user
mailing list