Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.1.0, 1.1.1
-
Fix Version/s: 1.2.0
-
Component/s: Integration service
-
Security Level: Public
-
- Environment:
- petals 5.2.0-SNAPSHOT
Activity
| Field | Original Value | New Value |
|---|---|---|
| Priority | Major [ 3 ] | |
| Description |
I have bpmn with form property with different type string, boolean or long.
With the ProcessInstancesService it's possible to get a process instance with variable predicate. If the variable is of type string it's work whell. but if the variable has a different type of string, no instance is returned. Java example final GetProcessInstances processInstancesRequest = new GetProcessInstances(); processInstancesRequest.setState(ProcessInstanceState.ACTIVE); processInstancesRequest.setProcessDefinitionIdentifier("processSubventionSportCulture"); final Variables variables = new Variables(); final Variable idBackOffice = new Variable(); idBackOffice.setName("idBackOfficeSubvention"); idBackOffice.setValue("string value"); variables.getVariable().add(idBackOffice); final Variable longVariable = new Variable(); longVariable.setName("longProperty"); longVariable.setValue(13246L); variables.getVariable().add(longVariable); The Variable objet get a String value. SOAP Exemple <ns:getProcessInstances> <ns:state>active</ns:state> <ns:process-definition-identifier>processSubventionSportCulture</ns:process-definition-identifier> <ns:process-instance-identifier></ns:process-instance-identifier> <ns:variables> <ns:variable name="idBackOfficeSubvention">string value</ns:variable> <ns:variable name="longProperty">13246</ns:variable> </ns:variables> </ns:getProcessInstances> If the longProperty vairable are supressed i get one instance. It's the same with a Boolean type. |
I have bpmn with form property with different type string, boolean or long.
With the ProcessInstancesService it's possible to get a process instance with variable predicate. If the variable is of type string it's work whell. but if the variable has a different type of string, no instance is returned. Java example {code} final GetProcessInstances processInstancesRequest = new GetProcessInstances(); processInstancesRequest.setState(ProcessInstanceState.ACTIVE); processInstancesRequest.setProcessDefinitionIdentifier("processSubventionSportCulture"); final Variables variables = new Variables(); final Variable idBackOffice = new Variable(); idBackOffice.setName("idBackOfficeSubvention"); idBackOffice.setValue("string value"); variables.getVariable().add(idBackOffice); final Variable longVariable = new Variable(); longVariable.setName("longProperty"); longVariable.setValue(13246L); variables.getVariable().add(longVariable); {code} The Variable objet get a String value. SOAP Exemple: {code} <ns:getProcessInstances> <ns:state>active</ns:state> <ns:process-definition-identifier>processSubventionSportCulture</ns:process-definition-identifier> <ns:process-instance-identifier></ns:process-instance-identifier> <ns:variables> <ns:variable name="idBackOfficeSubvention">string value</ns:variable> <ns:variable name="longProperty">13246</ns:variable> </ns:variables> </ns:getProcessInstances> {code} If the longProperty variable is supressed i get one instance. It's the same with a Boolean type. |
| Status | New [ 10000 ] | Open [ 10002 ] |
| Status | Open [ 10002 ] | In Progress [ 10003 ] |
| Status | In Progress [ 10003 ] | Resolved [ 10004 ] |
| Fix Version/s | 1.2.0 [ 10942 ] | |
| Resolution | Fixed [ 1 ] |
| Status | Resolved [ 10004 ] | Open [ 10002 ] |
| Resolution | Fixed [ 1 ] |
| Status | Open [ 10002 ] | In Progress [ 10003 ] |
| Status | In Progress [ 10003 ] | Resolved [ 10004 ] |
| Resolution | Fixed [ 1 ] |