Examples of WfRequester


Examples of de.danet.an.workflow.omgcore.WfRequester

    /**
     * Create a new process for the given type.
     */
    public void createProcess3() throws Exception {
  WfRequester cont = new DefaultRequester(workflowService());
  WfProcess process = createProcess("ut-process", "jut3", cont);
  assertTrue(process.state().startsWith("open.not_running.not_started"));
    process.start();
  Thread.sleep (5000);
  assertTrue("Process state should be closed.completed.normal, is "
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfRequester

    /**
     * Remove a given process from the database.
     */
    public void removeProcess3() throws Exception {
  WfRequester cont = new DefaultRequester(workflowService());
  WfProcess process = createProcess("ut-process", "jut999", cont);
  ProcessDirectory pd = null;
  try {
      pd = workflowService().processDirectory ();
      pd.removeProcess ((Process)process);
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfRequester

     * Create a new process and then remove its process definition.
     */
    public void createProcess1AndRemoveProcessDef() throws Exception
  ProcessDefinitionDirectory pdd = null;
  try {
      WfRequester cont = new DefaultRequester(workflowService());
      Process process = (Process)createProcess("ut-process", "jut1", cont);
      assertTrue(process.state().startsWith("open.not_running.not_started"));
      process.start();
      assertTrue(process.state().startsWith("open.running"));
      // remove its process definition
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfRequester

     * Create a new process and then remove its process definition.
     */
    public void createProcessAndRemoveProcessDef() throws Exception
  ProcessDefinitionDirectory pdd = null;
  try {
      WfRequester cont = new DefaultRequester(workflowService());
      Process process = (Process)createProcess("N1", "N2", cont);
      process.start();
      Thread.sleep(5000);

      // get processdata
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfRequester

     * Describe <code>requester</code> method here.
     *
     * @return a <code>WfRequester</code> value
     */
    public WfRequester requester() {
  return new WfRequester () {
    public Collection performers() {
        throw new UnsupportedOperationException();
    }
    public boolean isMemberOfPerformers(WfProcess member) {
        throw new UnsupportedOperationException();
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfRequester

     *             A21 --> A22 --> A23 --> A24
     * </pre>
     * without any branched activity.
     */
    public void processjut2() throws Exception {
  WfRequester req = new DefaultRequester(workflowService);
  // create the process
  WfProcess process = createProcess("ut-process", "jut2", req);
  assertTrue(process.state().equals("open.not_running.not_started"));
  // start the process
  process.start();
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfRequester

     *             A41 --|        --| --> A44
     *                   |--> A43 --|
     * </pre>
     */
    public void processjut4() throws Exception {
  WfRequester req = new DefaultRequester(workflowService);
  // create the process
  WfProcess process = createProcess("ut-process", "jut4", req);
  assertTrue(process.state().equals("open.not_running.not_started"));
  // start the process
  process.start();
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfRequester

    /**
     * Test a complex process definition.
     * The activities will be finished manually.
     */
    public void processjut6() throws Exception {
  WfRequester req = new DefaultRequester(workflowService);
  // create the process
  WfProcess process = createProcess("ut-process", "jut6", req);
  assertTrue(process.state().equals("open.not_running.not_started"));
  // start the process
  process.start();
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfRequester

  //suspendresumeProcess();
    }

    //Abort Process
    private void abortProcess() throws Exception {
  WfRequester req = new DefaultRequester(workflowService);
  WfProcess process = createProcess("ut-process", "jut2", req);
  assertTrue(process.state().equals("open.not_running.not_started"));
  process.start();
  assertTrue(process.state().startsWith("open.running"));
  process.suspend();
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfRequester

  assertTrue(process.state().equals("closed.aborted"));
    }

    //Suspend Process then resume it
    private void suspendresumeProcess() throws Exception {
  WfRequester req = new DefaultRequester(workflowService);
  WfProcess process = createProcess("ut-process", "jut2", req);
  assertTrue(process.state().equals("open.not_running.not_started"));
  process.start();
  assertTrue(process.state().equals("open.running"));
  process.suspend();
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.