Shamal Karunarathne
2012-06-29 06:32:41 UTC
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]
"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]