Package org.jboss.bpm.console.client.model

Examples of org.jboss.bpm.console.client.model.ProcessInstanceRef$Lifecycle


        Fill fi = new Fill(inputs.eClearSale.map(u -> Unit.UNIT),
                           inputs.eFuelPulses, inputs.calibration,
                           inputs.price1, inputs.price2, inputs.price3,
                           eStart);
        NotifyPointOfSale np = new NotifyPointOfSale(
                new LifeCycle(inputs.eNozzle1,
                              inputs.eNozzle2,
                              inputs.eNozzle3),
                inputs.eClearSale,
                fi);
        eStart.loop(np.eStart);
View Full Code Here


import sodium.*;
import java.util.Optional;

public class AccumulatePulsesPump implements Pump {
    public Outputs create(Inputs inputs) {
        LifeCycle lc = new LifeCycle(inputs.eNozzle1,
                                     inputs.eNozzle2,
                                     inputs.eNozzle3);
        Behavior<Double> litersDelivered =
                accumulate(lc.eStart.map(u -> Unit.UNIT),
                           inputs.eFuelPulses,
View Full Code Here

                          inputs.eClearSale.map(u -> Unit.UNIT),
                          inputs.eFuelPulses, inputs.calibration,
                          inputs.price1, inputs.price2, inputs.price3,
                          eStart);
        NotifyPointOfSale np = new NotifyPointOfSale(
                new LifeCycle(inputs.eNozzle1,
                              inputs.eNozzle2,
                              inputs.eNozzle3),
                inputs.eClearSale,
                fi);
        eStart.loop(np.eStart);
View Full Code Here

import sodium.*;
import java.util.Optional;

public class ShowDollarsPump implements Pump {
    public Outputs create(Inputs inputs) {
        LifeCycle lc = new LifeCycle(inputs.eNozzle1,
                                     inputs.eNozzle2,
                                     inputs.eNozzle3);
        Fill fi = new Fill(lc.eStart.map(u -> Unit.UNIT),
                           inputs.eFuelPulses, inputs.calibration,
                           inputs.price1, inputs.price2, inputs.price3,
View Full Code Here

    for(TInstanceInfo i0 : instanceListDocument.getInstanceInfoList().getInstanceInfoList())
    {
      if(i0.getPid().equals(procesQName.toString()))
      {
        ProcessInstanceRef ref = new ProcessInstanceRef(
            i0.getIid(),
            encodeId(i0.getPid()),
            i0.getDtStarted().getTime(),
            null,
            false // see filter criteria when selecting instances
View Full Code Here

  @Test @Ignore
  public void testNewProcessInstanceWithVariables() {
    HashMap<String, Object> variables = new HashMap<String, Object>();
    variables.put("key2", "variable2");
    ProcessInstanceRef instanceRef = processManager.newInstance("UserTask",  variables);
    assertEquals("UserTask", instanceRef.getDefinitionId());
    assertEquals(3, processManager.getProcessInstances("UserTask").size());
    assertEquals("variable2", processManager.getInstanceData(instanceRef.getId()).get("key2"));
  }
View Full Code Here

 
  @Test
  public void testProcessInstance(){
    String instanceID = Long.toString(delegate.startProcess("UserTask", null).getId());
    ProcessInstanceLog instanceLog =delegate.getProcessInstanceLog(instanceID);
    ProcessInstanceRef processInstanceRef = Transform.processInstance(instanceLog);
   
    assertEquals(instanceLog.getProcessInstanceId(),Long.parseLong(processInstanceRef.getId()));
    assertEquals(instanceLog.getProcessId(),processInstanceRef.getDefinitionId());
   
  }
View Full Code Here

    result.setDeploymentId("N/A");
    return result;
  }
 
  public static ProcessInstanceRef processInstance(ProcessInstanceLog processInstance) {
    ProcessInstanceRef result = new ProcessInstanceRef(
      processInstance.getProcessInstanceId() + "",
      processInstance.getProcessId(),
      processInstance.getStart(),
      processInstance.getEnd(),
      false);
    TokenReference token = new TokenReference(
      processInstance.getProcessInstanceId() + "", null, "");
    result.setRootToken(token);
    return result;
  }
View Full Code Here

    return ID;
  }

  public String getUrl(Object event)
  {
    ProcessInstanceRef inst = (ProcessInstanceRef)event;
    return URLBuilder.getInstance().getActiveNodeInfoURL(inst.getId());
  }
View Full Code Here

  }

  public void handleSuccessfulResponse(
      final Controller controller, final Object event, Response response)
  {
    ProcessInstanceRef inst = (ProcessInstanceRef)event;
    if (inst.getState().equals(ProcessInstanceRef.STATE.ENDED) || response.getText().length() == 0) {
      MessageBox.alert("Info", "Process is already completed");
    } else {
      List<ActiveNodeInfo> activeNodeInfos = DTOParser.parseActiveNodeInfo(response.getText());
      // update view
      ActivityDiagramView view = (ActivityDiagramView) controller.getView(ActivityDiagramView.ID);
      view.update(new ActivityDiagramResultEvent(URLBuilder.getInstance().getProcessImageURL(inst.getDefinitionId()), activeNodeInfos));
    }
    }
View Full Code Here

TOP

Related Classes of org.jboss.bpm.console.client.model.ProcessInstanceRef$Lifecycle

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.