Package de.danet.an.workflow.ejbs.admin

Examples of de.danet.an.workflow.ejbs.admin.ProcessDefinitionDirectory


    public String name () throws RemoteException {
  return mgrName;
    }

    private ProcessDefinition procDef () throws RemoteException {
  ProcessDefinitionDirectory pdd = null;
  try {
      if (processKey == null) {
    pdd = pddHome.create();
    return pdd.lookupProcessDefinition(packageId, processId);
      } else {
    Process proc = processHome.findByProcessKey(processKey);
    return proc.processDefinition();
      }
  } catch (InvalidKeyException ivke) {
View Full Code Here


     * @return ENABLED if creation of workflow processes is enabled,
     * otherwise DISABLED.
     * @throws RemoteException if a system-level error occurs.
     */
    public int processMgrState () throws RemoteException {
  ProcessDefinitionDirectory pdd = null;
  try {
      pdd = pddHome.create();
      if (pdd.isEnabled(packageId, processId)) {
    return WfProcessMgr.ENABLED;
      } else {
    return WfProcessMgr.DISABLED;
      }
  } catch (InvalidKeyException ivke) {
View Full Code Here

     * @throws TransitionNotAllowedException if the transition is not allowed
     * @throws RemoteException if a system-level error occurs.
     */
    public void setProcessMgrState (int newState) throws RemoteException,
  TransitionNotAllowedException {
  ProcessDefinitionDirectory pdd = null;
  try {
      pdd = pddHome.create();
      pdd.setEnabled
    (packageId, processId, newState == WfProcessMgr.ENABLED);
  } catch (InvalidKeyException ivke) {
      throw new TransitionNotAllowedException(ivke.getMessage());
  } catch (CreateException ce) {
      logger.error (ce.getMessage(), ce);
View Full Code Here

     * @return a WfProcess object
     */
    public WfProcess createProcess (WfRequester requester)
  throws RemoteException, NotEnabledException,
  InvalidRequesterException, RequesterRequiredException {
  ProcessDefinitionDirectory pdd = null;
  try {
      pdd = pddHome.create()
      return pdd.createProcess(packageId, processId, requester);
  } catch (InvalidKeyException ce) {
      throw new NotEnabledException(ce.getMessage());
  } catch (CreateException ce) {
      logger.error (ce.getMessage(), ce);
      throw new RemoteException(ce.getMessage());
View Full Code Here

TOP

Related Classes of de.danet.an.workflow.ejbs.admin.ProcessDefinitionDirectory

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.