Examples of typedState()


Examples of de.danet.an.workflow.localapi.ActivityLocal.typedState()

        NotRunningException {
  mayCloseCheck (ClosedState.TERMINATED);
  if (stepsLocal() != null) {
      for (Iterator it = stepsLocal().iterator(); it.hasNext();) {
    ActivityLocal act = (ActivityLocal)it.next();
    State s = act.typedState();
    if (s.isSameOrSubState(NotRunningState.SUSPENDED)
        || s == ClosedState.ABORTED) {
        throw new CannotStopException
      (act.toString() + " is suspended.");
    }
View Full Code Here

Examples of de.danet.an.workflow.localapi.ActivityLocal.typedState()

      try {
    setPaTypedState(RunningState.TERMINATING);
    for (Iterator it = stepsLocal().iterator(); it.hasNext();) {
        ActivityLocal act = (ActivityLocal)it.next();
        if (act.workflowState() == State.OPEN
      && (!act.typedState().isSameOrSubState
          (NotRunningState.NOT_STARTED))) {
      try {
          act.terminate();
      } catch (CannotStopException e) {
          unstoppable = act.toString()
View Full Code Here

Examples of de.danet.an.workflow.localapi.ActivityLocal.typedState()

      try {
    setPaTypedState(SuspendedState.ABORTING);
    for (Iterator it = stepsLocal().iterator(); it.hasNext();) {
        ActivityLocal act = (ActivityLocal)it.next();
        try {
      if (act.typedState().isSameOrSubState
          (NotRunningState.SUSPENDED)) {
          act.abort ();
      } else if (act.typedState().isSameOrSubState
           (OpenState.RUNNING)) {
          try {
View Full Code Here

Examples of de.danet.an.workflow.localapi.ActivityLocal.typedState()

        ActivityLocal act = (ActivityLocal)it.next();
        try {
      if (act.typedState().isSameOrSubState
          (NotRunningState.SUSPENDED)) {
          act.abort ();
      } else if (act.typedState().isSameOrSubState
           (OpenState.RUNNING)) {
          try {
        act.terminate();
          } catch (CannotStopException e) {
        act.suspend ();
View Full Code Here

Examples of de.danet.an.workflow.localapi.ActivityLocal.typedState()

      && (((SubProcRequester)req).execution()
    == SubFlowImplementation.SYNCHR)) {
      String key = ((SubProcRequester)req).requestingActivity();
      try {
    ActivityLocal act = lookupActivityLocal (key);
    if (act.typedState () != RunningState.ABANDONING
        && act.typedState() != ClosedCompletedState.ABANDONED) {
        act.terminate ();
    }
      } catch (InvalidKeyException e) {
    logger.warn (toString() + " cannot notify requesting activity "
View Full Code Here

Examples of de.danet.an.workflow.localapi.ActivityLocal.typedState()

    == SubFlowImplementation.SYNCHR)) {
      String key = ((SubProcRequester)req).requestingActivity();
      try {
    ActivityLocal act = lookupActivityLocal (key);
    if (act.typedState () != RunningState.ABANDONING
        && act.typedState() != ClosedCompletedState.ABANDONED) {
        act.terminate ();
    }
      } catch (InvalidKeyException e) {
    logger.warn (toString() + " cannot notify requesting activity "
           + key + " : " + e.getMessage ());
View Full Code Here

Examples of de.danet.an.workflow.localapi.ActivityLocal.typedState()

      && (((SubProcRequester)req).execution()
    == SubFlowImplementation.SYNCHR)) {
      String key = ((SubProcRequester)req).requestingActivity();
      try {
    ActivityLocal act = lookupActivityLocal (key);
    if (act.typedState() != RunningState.ABANDONING
        && act.typedState() != ClosedCompletedState.ABANDONED) {
        ProcessData res = processContext();
        FormalParameter[] fps
      = processDefinition().formalParameters();
        ProcessData pd = new ProcessDataWithParams (fps);
View Full Code Here

Examples of de.danet.an.workflow.localapi.ActivityLocal.typedState()

    == SubFlowImplementation.SYNCHR)) {
      String key = ((SubProcRequester)req).requestingActivity();
      try {
    ActivityLocal act = lookupActivityLocal (key);
    if (act.typedState() != RunningState.ABANDONING
        && act.typedState() != ClosedCompletedState.ABANDONED) {
        ProcessData res = processContext();
        FormalParameter[] fps
      = processDefinition().formalParameters();
        ProcessData pd = new ProcessDataWithParams (fps);
        for (int i = 0; i < fps.length; i++) {
View Full Code Here

Examples of de.danet.an.workflow.localapi.ActivityLocal.typedState()

        // to be started in the set.
        boolean isFirst = true;
        for (Iterator i = activitiesOfBlockActivity(ba).iterator();
       i.hasNext ();) {
      ActivityLocal bm = (ActivityLocal)i.next ();
      if (!bm.typedState()
          .isSameOrSubState (NotRunningState.NOT_STARTED)) {
          isFirst = false;
          break;
      }
        }
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.