Examples of invoke()


Examples of org.apache.lenya.cms.workflow.WorkflowDocument.invoke()

     * @throws AccessControlException If an access control violation occurs.
     */
    public void triggerWorkflow(FOM_Cocoon cocoon, String event)
    throws WorkflowException, PageEnvelopeException, AccessControlException {
        final WorkflowDocument wf = (WorkflowDocument)WorkflowFactory.newInstance().buildInstance(getPageEnvelope(cocoon).getDocument());
        wf.invoke(getSituation(cocoon), event);
    }
   
    /**
     * Get a RevisionController instance.
     * @param cocoon The Cocoon Flow Object Model
View Full Code Here

Examples of org.apache.lenya.workflow.SynchronizedWorkflowInstances.invoke()

                assert event != null;

                if (log.isDebugEnabled()) {
                    log.debug("Invoking event [" + event.getName() + "]");
                }
                instance.invoke(situation, event);
                if (log.isDebugEnabled()) {
                    log.debug("Invoking transition completed.");
                }
            } catch (Exception e) {
                throw new ExecutionException(e);
View Full Code Here

Examples of org.apache.lenya.workflow.WorkflowEngine.invoke()

            if (force && !engine.canInvoke(workflowable, workflow, event)) {
                throw new WorkflowException("The event [" + event
                        + "] cannot be invoked on the document [" + workflowable + "]");
            }
            engine.invoke(workflowable, workflow, event);
        }
    }

    /**
     * @see org.apache.lenya.workflow.WorkflowManager#invoke(org.apache.lenya.workflow.Workflowable,
View Full Code Here

Examples of org.apache.lenya.workflow.WorkflowInstance.invoke()

            assertNotNull(event);
            System.out.println();

            System.out.println("Executing event: " + event);
            instance.invoke(situation, event);

            assertTrue(instance.getValue(variableName) == situations[situationIndex].getValue());

            System.out.println(
                "Variable: " + variableName + " = " + instance.getValue(variableName));
View Full Code Here

Examples of org.apache.lenya.workflow.WorkflowManager.invoke()

            Document document, String event) throws WorkflowException {
        WorkflowManager wfManager = null;
        try {
            wfManager = (WorkflowManager) manager.lookup(WorkflowManager.ROLE);
            Workflowable workflowable = getWorkflowable(manager, session, logger, document);
            wfManager.invoke(workflowable, event);
        } catch (ServiceException e) {
            throw new WorkflowException(e);
        } finally {
            if (wfManager != null) {
                manager.release(wfManager);
View Full Code Here

Examples of org.apache.lucene.gdata.hivemind.webservice.HessianServiceSkeletonInvoker.invoke()

            throws ServletException, IOException {
        try {
            HessianSkeletonProvider provider = getSkeletonProvider(arg0);
            HessianServiceSkeletonInvoker invoker = provider
                    .getServiceSkeletonInvoker(arg0);
            invoker.invoke(arg0, arg1);
        } catch (Throwable e) {
            throw new ServletException("Nested Exception occured -- Message: "
                    + e.getMessage(), e);
        }
View Full Code Here

Examples of org.apache.maven.surefire.providerapi.SurefireProvider.invoke()

                                 factory );
        final SurefireProvider provider = providerFactory.createProvider( insideFork );

        try
        {
            return provider.invoke( testSet );
        }
        finally
        {
            if ( restoreStreams && System.getSecurityManager() == null )
            {
View Full Code Here

Examples of org.apache.muse.core.Resource.invoke()

        catch (SoapFault fault)
        {
            return fault.toXML();
        }

        return resource.invoke(soapBody);
    }
   
    public void setEnvironment(Environment environment)
    {
        if (environment == null)
View Full Code Here

Examples of org.apache.muse.core.routing.ResourceRouter.invoke()

      ResourceRouter delegateRouter = null;
      if(bundle != null){
        delegateRouter = (ResourceRouter)delegateMap.get(bundle);
      }
          ((OSGiEnvironment)getEnvironment()).setThreadLocalBundle(bundle);
    return delegateRouter.invoke(soapBody);
        } finally {
            ((OSGiEnvironment)getEnvironment()).setThreadLocalBundle(null);
        }
  }
 
View Full Code Here

Examples of org.apache.muse.ws.resource.remote.WsResourceClient.invoke()

      resourceEndpointReference.addParameter(
          Names.RESOURCE_ID_QNAME,
          wsresourceid);
     
      WsResourceClient resourceClient = new WsResourceClient(resourceEndpointReference);
      Element wsdl = ((Element[])resourceClient.invoke(proxyHandler,WSDL_DIALECT))[0];
           
          NodeList nodelist = wsdl.getChildNodes();
          Element definitions = null;
          for (int i = 0; i < nodelist.getLength(); i++)
          {
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.