Examples of EndState


Examples of org.drools.jpdl.core.node.EndState

                    }
                }
            }
            node = newNode;
        } else if (jPDLnode instanceof org.jbpm.graph.node.EndState) {
            node = new EndState();
        } else if (org.jbpm.graph.def.Node.class.equals(jPDLnode.getClass())) {
            JpdlNode newNode = new JpdlNode();
            setDefaultNodeProperties(jPDLnode, newNode);
            node = newNode;
        } else if (jPDLnode instanceof org.jbpm.graph.node.Fork) {
View Full Code Here

Examples of org.jbpm.graph.node.EndState

  public void testDecisionEvents() {
    assertSupportedEvents(new Decision(), new String[] { "node-enter", "node-leave", "before-signal", "after-signal" });
  }

  public void testEndStateEvents() {
    assertSupportedEvents(new EndState(), new String[] { "node-enter" });
  }
View Full Code Here

Examples of org.jbpm.ui.common.model.EndState

            ActionImpl action = new ActionImpl();
            action.setDelegationClassName("ru.runa.wf.jbpm.delegation.action.SetSubProcessPermissionsActionHandler");
            writeEvent(document, root, new Event(Event.SUBPROCESS_CREATED), action);
        }

        EndState endState = definition.getFirstChild(EndState.class);
        if (endState != null) {
            writeElement(document, root, endState);
        }
    }
View Full Code Here

Examples of org.jbpm.ui.common.model.EndState

            waitStateElement.appendChild(timerElement);
            //writeActions(document, waitStateElement, (Active) state);
          writeTransitions(document, waitStateElement, state);
        }

        EndState endState = definition.getFirstChild(EndState.class);
        if (endState != null) {
            writeElement(document, root, endState);
        }
    }
View Full Code Here

Examples of org.springframework.batch.core.job.flow.support.state.EndState

  public void testGetSteps() throws Exception {
    SimpleFlow flow = new JsrFlow("job");
    List<StateTransition> transitions = new ArrayList<StateTransition>();
    transitions.add(StateTransition.createStateTransition(new StepState(new StubStep("step1")), "step2"));
    transitions.add(StateTransition.createStateTransition(new StepState(new StubStep("step2")), "end0"));
    transitions.add(StateTransition.createEndStateTransition(new EndState(FlowExecutionStatus.COMPLETED, "end0")));
    flow.setStateTransitions(transitions);
    flow.afterPropertiesSet();
    job.setFlow(flow);
    job.afterPropertiesSet();
    assertEquals(2, job.getStepNames().size());
View Full Code Here

Examples of org.springframework.webflow.engine.EndState

      public MappingResults map(Object source, Object target) {
    assertEquals(new Long(1), ((AttributeMap) source).get("hotelId"));
    return null;
      }
  });
  new EndState(mockBookingFlow, "bookingConfirmed");
  getFlowDefinitionRegistry().registerFlowDefinition(mockBookingFlow);

  MockExternalContext context = new MockExternalContext();
  context.setEventId("book");
  resumeFlow(context);
View Full Code Here

Examples of org.springframework.webflow.engine.EndState

    MockFlowBuilderContext context = new MockFlowBuilderContext("foo");
    FlowAssembler assembler = new FlowAssembler(builder, context);
    Flow flow = assembler.assembleFlow();
    context.registerSubflow(flow);
    Flow notManaged = new Flow("notmanaged");
    new EndState(notManaged, "finish");
    context.registerSubflow(notManaged);
    context.registerBean("loadTestBean", new Action() {
      public Event execute(RequestContext context) throws Exception {
        assertSessionBound();
        Session session = (Session) context.getFlowScope().get("persistenceContext");
View Full Code Here

Examples of org.springframework.webflow.engine.EndState

    MockFlowBuilderContext context = new MockFlowBuilderContext("foo");
    FlowAssembler assembler = new FlowAssembler(builder, context);
    Flow flow = assembler.assembleFlow();
    context.registerSubflow(flow);
    Flow notManaged = new Flow("notmanaged");
    new EndState(notManaged, "finish");
    context.registerSubflow(notManaged);
    context.registerBean("loadTestBean", new Action() {
      public Event execute(RequestContext context) throws Exception {
        assertSessionBound();
        EntityManager em = (EntityManager) context.getFlowScope().get("persistenceContext");
View Full Code Here

Examples of org.springframework.webflow.engine.EndState

    TestBean bean = new TestBean(1, "Keith Donald");
    jpaTemplate.persist(bean);
    assertEquals("Table should still only have one row", 1, jdbcTemplate.queryForInt("select count(*) from T_BEAN"));

    EndState endState = new EndState(flowSession.getDefinitionInternal(), "success");
    endState.getAttributes().put("commit", Boolean.TRUE);
    flowSession.setState(endState);

    jpaListener.sessionEnded(context, flowSession, "success", null);
    assertEquals("Table should only have two rows", 2, jdbcTemplate.queryForInt("select count(*) from T_BEAN"));
    assertSessionNotBound();
View Full Code Here

Examples of org.springframework.webflow.engine.EndState

    TestBean bean = new TestBean("Keith Donald");
    hibernateTemplate.save(bean);
    assertEquals("Table should still only have one row", 1, jdbcTemplate.queryForInt("select count(*) from T_BEAN"));

    EndState endState = new EndState(flowSession.getDefinitionInternal(), "success");
    endState.getAttributes().put("commit", Boolean.TRUE);
    flowSession.setState(endState);

    hibernateListener.sessionEnded(context, flowSession, "success", null);
    assertEquals("Table should only have two rows", 2, jdbcTemplate.queryForInt("select count(*) from T_BEAN"));
    assertSessionNotBound();
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.