Examples of steps()


Examples of de.danet.an.workflow.omgcore.WfProcess.steps()

  assertTrue(((String)data.get("testString")).equals("WfMOpen"));
  assertTrue((((String)data.get("packageStringData")) == null));
  assertTrue(((Long)data.get("packageIntegerData")).intValue() == 3);

  // Test access to context info via activity
  assertTrue(proc.steps().size() > 0);
  WfActivity act = (WfActivity)proc.steps().toArray()[0];
  data = act.processContext();
  assertTrue(((Boolean)data.get("packageBooleanData")).booleanValue());
  assertTrue(((String)data.get("testString")).equals("WfMOpen"));
  assertTrue((((String)data.get("packageStringData")) == null)
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfProcess.steps()

  assertTrue((((String)data.get("packageStringData")) == null));
  assertTrue(((Long)data.get("packageIntegerData")).intValue() == 3);

  // Test access to context info via activity
  assertTrue(proc.steps().size() > 0);
  WfActivity act = (WfActivity)proc.steps().toArray()[0];
  data = act.processContext();
  assertTrue(((Boolean)data.get("packageBooleanData")).booleanValue());
  assertTrue(((String)data.get("testString")).equals("WfMOpen"));
  assertTrue((((String)data.get("packageStringData")) == null)
       || (((String)data.get("packageStringData")).equals("")));
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfProcess.steps()

  WfProcess proc = mgr.createProcess(requester);
  String procKey = proc.key();
  proc.start();
  assertTrue(stateReached(proc, "open.running.running",
        "open.not_running.suspended.suspended"));
  Activity act = (Activity)proc.steps().toArray()[0];
  act.resume();
  assertTrue(stateReached(proc, "closed.completed",
        "closed.completed"));
  // Assure that process has to be removed manually
  assertTrue(mgr.processByKey(procKey) != null);
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfProcess.steps()

  proc = mgr.createProcess(requester);
  procKey = proc.key();
  proc.start();
  assertTrue(stateReached(proc, "open.running.running",
        "open.not_running.suspended.suspended"));
  act = (Activity)proc.steps().toArray()[0];
  act.resume();
  assertTrue(stateReached(proc, "closed.completed",
        "closed.completed"));
  // Assure that process has to be removed manually
  assertTrue(mgr.processByKey(procKey) != null);
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfProcess.steps()

  String procKey = proc.key();
  proc.start();
  Activity act2 = null;
  Activity act3 = null;
  assertTrue(stateReached(proc, "open.running"));
  for (Iterator i = proc.steps().iterator (); i.hasNext ();) {
      Activity a = (Activity)i.next ();
      if (a.name().equals ("ACT2")) {
    act2 = a;
      } else if (a.name().equals ("ACT3")) {
    act3 = a;
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfProcess.steps()

  assertTrue(((Long)data.get("packageIntegerData")).intValue() == 3);

  //wait to shutdown the processing instance
  Util.sleep(30000);
  // Test access to context info via activity
  assertTrue(proc.steps().size() > 0);
  WfActivity act = (WfActivity)proc.steps().toArray()[0];
  data = act.processContext();
  assertTrue(((Boolean)data.get("packageBooleanData")).booleanValue());
  assertTrue(((String)data.get("testString")).equals("WfMOpen"));
  assertTrue((((String)data.get("packageStringData")) == null)
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfProcess.steps()

  //wait to shutdown the processing instance
  Util.sleep(30000);
  // Test access to context info via activity
  assertTrue(proc.steps().size() > 0);
  WfActivity act = (WfActivity)proc.steps().toArray()[0];
  data = act.processContext();
  assertTrue(((Boolean)data.get("packageBooleanData")).booleanValue());
  assertTrue(((String)data.get("testString")).equals("WfMOpen"));
  assertTrue((((String)data.get("packageStringData")) == null)
       || (((String)data.get("packageStringData")).equals("")));
View Full Code Here

Examples of org.apache.hadoop.gateway.filter.rewrite.api.UrlRewriteFlowDescriptor.steps()

    this.processor = processor;
    this.isCondition = descriptor instanceof UrlRewriteFlowDescriptor;
    this.childProcessors = new ArrayList<UrlRewriteStepProcessorHolder>();
    if( isCondition ) {
      UrlRewriteFlowDescriptor flowDescriptor = (UrlRewriteFlowDescriptor)descriptor;
      List<UrlRewriteStepDescriptor> stepList = flowDescriptor.steps();
      if( stepList != null && !stepList.isEmpty() ) {
        Iterator<UrlRewriteStepDescriptor> stepIterator = stepList.iterator();
        while( stepIterator.hasNext() ) {
          UrlRewriteStepDescriptor stepDescriptor = stepIterator.next();
          UrlRewriteStepProcessorHolder stepProcessor = new UrlRewriteStepProcessorHolder();
View Full Code Here

Examples of org.apache.hadoop.gateway.filter.rewrite.api.UrlRewriteRuleDescriptor.steps()

      config = digester.parse( reader );
      assertThat( config, notNullValue() );
      assertThat( config.getRules(), notNullValue() );
      assertThat( config.getRules().size(), is( 1 ) );
      rule = config.getRules().get( 0 );
      assertThat( rule.steps(), notNullValue() );
      assertThat( rule.steps().size(), is( 1 ) );
      match = (UrlRewriteMatchDescriptorExt)rule.steps().get( 0 );
      assertThat( match, notNullValue() );
      //assertThat( match.type(), nullValue() );
      assertThat( match.operation(), nullValue() );
View Full Code Here

Examples of org.apache.hadoop.gateway.filter.rewrite.api.UrlRewriteRuleDescriptor.steps()

      assertThat( config, notNullValue() );
      assertThat( config.getRules(), notNullValue() );
      assertThat( config.getRules().size(), is( 1 ) );
      rule = config.getRules().get( 0 );
      assertThat( rule.steps(), notNullValue() );
      assertThat( rule.steps().size(), is( 1 ) );
      match = (UrlRewriteMatchDescriptorExt)rule.steps().get( 0 );
      assertThat( match, notNullValue() );
      //assertThat( match.type(), nullValue() );
      assertThat( match.operation(), nullValue() );
      assertThat( match.pattern(), nullValue() );
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.