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

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
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
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

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