Package de.danet.an.workflow.api

Examples of de.danet.an.workflow.api.Channel


        throws InvalidKeyException, NotEnabledException,
            InvalidRequesterException, RequesterRequiredException,
            CannotStartException, AlreadyRunningException,
            CannotRemoveException {
        WorkflowService workflowService = null;
        Channel chan = null;
        try {
            WorkflowServiceFactory wsf = WorkflowServiceFactory.newInstance();
            workflowService = wsf.newWorkflowService();
       
            ProcessDefinitionDirectory procDefDir
                = workflowService.processDefinitionDirectory();
            ProcessDirectory procDir = workflowService.processDirectory();
            ProcessMgr pmgr = procDefDir.processMgr
                ("chabacc", "chabacc_test_sender");
            WfProcess process
                = pmgr.createProcess(new DefaultRequester (workflowService));
            chan = workflowService.getChannel(process, "test_channel");
            process.start();
            Map pd = chan.receiveMessage(timeout);
            return pd;
        } catch (RemoteException e) {
            throw new EJBException (e);
        } finally {
          workflowService.release (chan);
View Full Code Here

TOP

Related Classes of de.danet.an.workflow.api.Channel

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.