Discussion:
[jboss-user] [jBPM] - How to use a custom object as process variable
Shamal Karunarathne
2012-06-29 06:32:41 UTC
Permalink
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]
Sadiroveski S
2013-02-22 07:10:47 UTC
Permalink
Sadiroveski S [https://community.jboss.org/people/sadiroveski] created the discussion

"Re: How to use a custom object as process variable"

To view the discussion, visit: https://community.jboss.org/message/799014#799014

--------------------------------------------------------------
Hello,

I am still trying, hope to reach a solution.
This is what I tried till now:      https://community.jboss.org/thread/221513?tstart=0 https://community.jboss.org/thread/221513?tstart=0

Regards,
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/799014#799014]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...