Package de.mhus.lib.bpm

Examples of de.mhus.lib.bpm.BpmException


            }
        });
        processDefinition.addEvent(leaveEvent);
      }
    } else
      throw new BpmException(this,"workflow definition not found");
  }
View Full Code Here


  @Override
  public void execute(String action, String name, Map<String, Object> parameters) throws BpmException {
    log().t("signal",action,name,parameters);
    if (getStatus() != STATUS.ACTIVE)
      throw new BpmException(this,"instance is not active");
   
    if (action != null) {
      // check
      Token root = processInstance.getRootToken();
      if (!action.equals(root.getNode().getName()))
        throw new BpmException(this,"action is not current " + action);
    }
   
    ContextInstance contextInstance = processInstance.getContextInstance();
    if (parameters != null) contextInstance.setVariables(parameters);
    if (name == null) processInstance.signal(); else processInstance.signal(name);
View Full Code Here

TOP

Related Classes of de.mhus.lib.bpm.BpmException

Copyright © 2018 www.massapicom. 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.