Examples of signal()


Examples of org.jbpm.pvm.Execution.signal()

        .node("end").behaviour(new WaitState())
    .done();
   
    Execution execution = processDefinition.startExecution();
    assertEquals("accept loan request", execution.getNode().getName());
    execution.signal();
    assertEquals("loan evaluation", execution.getNode().getName());
    execution.signal("approve");
    assertEquals("end", execution.getNode().getName());
   
    execution = processDefinition.startExecution();
View Full Code Here

Examples of org.jbpm.pvm.Execution.signal()

   
    Execution execution = processDefinition.startExecution();
    assertEquals("accept loan request", execution.getNode().getName());
    execution.signal();
    assertEquals("loan evaluation", execution.getNode().getName());
    execution.signal("approve");
    assertEquals("end", execution.getNode().getName());
   
    execution = processDefinition.startExecution();
    assertEquals("accept loan request", execution.getNode().getName());
    execution.signal();
View Full Code Here

Examples of org.jbpm.pvm.Execution.signal()

    execution.signal("approve");
    assertEquals("end", execution.getNode().getName());
   
    execution = processDefinition.startExecution();
    assertEquals("accept loan request", execution.getNode().getName());
    execution.signal();
    assertEquals("loan evaluation", execution.getNode().getName());
    execution.signal("reject");
    assertEquals("end", execution.getNode().getName());
  }
}
View Full Code Here

Examples of org.jbpm.pvm.Execution.signal()

   
    execution = processDefinition.startExecution();
    assertEquals("accept loan request", execution.getNode().getName());
    execution.signal();
    assertEquals("loan evaluation", execution.getNode().getName());
    execution.signal("reject");
    assertEquals("end", execution.getNode().getName());
  }
}
View Full Code Here

Examples of org.jbpm.pvm.Execution.signal()

          .event("node-enter")
            .listener(new Display("entering b"))
    .done();

    Execution execution = processDefinition.startExecution();
    execution.signal();
  }
}
View Full Code Here

Examples of org.jbpm.pvm.Execution.signal()

    this.parameters = parameters;
  }

  public Object execute(Environment environment) throws Exception {
    Execution execution = environment.get(PvmDbSession.class).get(ExecutionImpl.class, executionDbid);
    execution.signal(signalName, parameters);
    return execution;
  }
}
View Full Code Here

Examples of org.jbpm.pvm.ExternalActivity.signal()

    ExternalActivity externalActivity = (ExternalActivity) node.getBehaviour();
   
    try {
      execution.userCodeType = ExecutionImpl.UserCodeType.NODE_BEHAVIOUR;
      execution.propagation = Propagation.UNSPECIFIED;
      externalActivity.signal(execution, signal, parameters);
    } catch (RuntimeException e) {
      throw e;
    } catch (Exception e) {
      throw new PvmException("couldn't signal "+node+": "+e.getMessage(), e);
    } finally {
View Full Code Here

Examples of org.jbpm.pvm.internal.client.ClientExecution.signal()

  public void complete(String outcome) {
    historyTaskComplete(outcome);
   
    if (isSignalling()) {
      ClientExecution execution = (ClientExecution) getExecution();
      execution.signal(outcome);
    }
   
    if (superTask != null) {
      superTask.subTaskComplete(this, outcome);
    }
View Full Code Here

Examples of org.jbpm.pvm.internal.model.ExecutionImpl.signal()

    ProcessDefinitionImpl lifeCycleProcess = getLifeCycle(task);
    lifeCycleExecution.setProcessDefinition(lifeCycleProcess);
    String state = task.getState();
    Activity activity = lifeCycleProcess.getActivity(state);
    lifeCycleExecution.setActivity((ActivityImpl) activity);
    lifeCycleExecution.signal(eventName);
    task.setState(lifeCycleExecution.getActivity().getName());
  }

  public IdGenerator getIdGenerator() {
    // overrides the default ProcessDefinitionImpl behaviour that will end up
View Full Code Here

Examples of org.jtrim.concurrent.WaitableSignal.signal()

        else {
            final WaitableSignal loadedSignal = new WaitableSignal();
            properties = project.getPropertiesForProfile(config.getProfileDef(), true, new PropertiesLoadListener() {
                @Override
                public void loadedProperties(ProjectProperties properties) {
                    loadedSignal.signal();
                }
            });
            loadedSignal.waitSignal(cancelToken);
        }
        return properties;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.