Petals SE Flowable

ProcessInstanceService Searching for a process instance with a variable type different from a string does not work

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major 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
  • Description:
    Hide

    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 variable is supressed i get one instance.

    It's the same with a Boolean type.

    Show
    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 variable is supressed i get one instance. It's the same with a Boolean type.
  • Environment:
    petals 5.2.0-SNAPSHOT

Activity

Christophe DENEUX made changes - Mon, 17 Jun 2019 - 11:13:52 +0200
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.
Christophe DENEUX made changes - Mon, 17 Jun 2019 - 11:13:58 +0200
Status New [ 10000 ] Open [ 10002 ]
Christophe DENEUX made changes - Mon, 17 Jun 2019 - 11:14:00 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Hide
Christophe DENEUX added a comment - Mon, 17 Jun 2019 - 11:20:35 +0200

Fix in branch petals-se-flowable-1.1.x

Show
Christophe DENEUX added a comment - Mon, 17 Jun 2019 - 11:20:35 +0200 Fix in branch petals-se-flowable-1.1.x
Christophe DENEUX made changes - Mon, 17 Jun 2019 - 11:20:35 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 1.2.0 [ 10942 ]
Resolution Fixed [ 1 ]
Hide
Christophe DENEUX added a comment - Mon, 17 Jun 2019 - 11:20:48 +0200

Reopen to merge in master branch

Show
Christophe DENEUX added a comment - Mon, 17 Jun 2019 - 11:20:48 +0200 Reopen to merge in master branch
Christophe DENEUX made changes - Mon, 17 Jun 2019 - 11:20:48 +0200
Status Resolved [ 10004 ] Open [ 10002 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Mon, 17 Jun 2019 - 14:34:00 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Hide
Christophe DENEUX added a comment - Mon, 17 Jun 2019 - 14:34:12 +0200

Merged in master branch

Show
Christophe DENEUX added a comment - Mon, 17 Jun 2019 - 14:34:12 +0200 Merged in master branch
Christophe DENEUX made changes - Mon, 17 Jun 2019 - 14:34:12 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Resolution Fixed [ 1 ]
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
317d 22h 6m
1
Christophe DENEUX
Mon, 17 Jun 2019 - 11:13:58 +0200
Open Open In Progress In Progress
2s
1
Christophe DENEUX
Mon, 17 Jun 2019 - 11:14:00 +0200
In Progress In Progress Resolved Resolved
6m 35s
1
Christophe DENEUX
Mon, 17 Jun 2019 - 11:20:35 +0200
Resolved Resolved Open Open
13s
1
Christophe DENEUX
Mon, 17 Jun 2019 - 11:20:48 +0200
Open Open In Progress In Progress
3h 13m
1
Christophe DENEUX
Mon, 17 Jun 2019 - 14:34:00 +0200
In Progress In Progress Resolved Resolved
12s
1
Christophe DENEUX
Mon, 17 Jun 2019 - 14:34:12 +0200



People

Dates

  • Created:
    Fri, 3 Aug 2018 - 13:07:16 +0200
    Updated:
    Mon, 17 Jun 2019 - 14:34:12 +0200
    Resolved:
    Mon, 17 Jun 2019 - 14:34:12 +0200