Package org.jbpm.persistence.correlation

Examples of org.jbpm.persistence.correlation.CorrelationKeyInfo


        assertEquals(((StartProcessCommand) newReq.getCommands().get(0)).getParameters().get("two"), "B");

        req = new JaxbCommandsRequest("deployment", new StartProcessCommand("org.jbpm.humantask"));
        newReq = testRoundTrip(req);

        CorrelationKeyInfo corrKey = new CorrelationKeyInfo();
        corrKey.addProperty(new CorrelationPropertyInfo("null", "val"));
   
        GetProcessInstanceByCorrelationKeyCommand gpibckCmd = new GetProcessInstanceByCorrelationKeyCommand(corrKey);
        req = new JaxbCommandsRequest("test", gpibckCmd);
        testRoundTrip(req);
    }
View Full Code Here


    set(info, "eventTypes", toSet(this.processInstanceEventTypes));
    return info;
  }
 
  public CorrelationKeyInfo getCorrelationKeyInfo() {
    CorrelationKeyInfo info = new CorrelationKeyInfo();
    info.setName(this.correlationKeyName);
    info.setProcessInstanceId(this.processInstanceId);
    List<CorrelationPropertyInfo> props = toProperties(this.correlationKeyProperties);
    for (CorrelationPropertyInfo prop : props) {
      info.addProperty(prop);
    }
    set(info, "id", this.correlationKeyId);
    return info;
  }
View Full Code Here

        context.persist( processInstanceInfo );
        ((org.jbpm.process.instance.ProcessInstance) processInstance).setId( processInstanceInfo.getId() );
        processInstanceInfo.updateLastReadDate();
        // persist correlation if exists
        if (correlationKey != null) {
            CorrelationKeyInfo correlationKeyInfo = (CorrelationKeyInfo) correlationKey;
            correlationKeyInfo.setProcessInstanceId(processInstanceInfo.getId());
            context.persist(correlationKeyInfo);
        }
        internalAddProcessInstance(processInstance);
    }
View Full Code Here

TOP

Related Classes of org.jbpm.persistence.correlation.CorrelationKeyInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.