Examples of Workflow


Examples of org.apache.wiki.workflow.Workflow

            facts[2] = new Fact( FACT_SUBMITTER, submitter.getName() );
            if ( hasEmail )
            {
                facts[3] = new Fact( PREFS_EMAIL, profile.getEmail() );
            }
            Workflow workflow = builder.buildApprovalWorkflow( submitter,
                                                               SAVE_APPROVER,
                                                               null,
                                                               SAVE_DECISION_MESSAGE_KEY,
                                                               facts,
                                                               completionTask,
                                                               null );

            workflow.setAttribute( SAVED_PROFILE, profile );
            m_engine.getWorkflowManager().start(workflow);

            boolean approvalRequired = workflow.getCurrentStep() instanceof Decision;

            // If the profile requires approval, redirect user to message page
            if ( approvalRequired )
            {
                throw new DecisionRequiredException( "This profile must be approved before it becomes active" );
View Full Code Here

Examples of org.cishell.reference.gui.workflow.model.Workflow

                .fromXML(in);
            // print all the VALUES
            WorkflowManager mgr = WorkflowManager.getInstance();
            List<Workflow> list = new ArrayList<Workflow>();

            Workflow wf = saver.getCurrentWorkflow();

            list.add(wf);
            for (Map.Entry<Long, WorkflowItem> item : ((NormalWorkflow) wf)
                .getMap().entrySet()) {
              ((AlgorithmWorkflowItem) item.getValue())
                  .setWorkflow(wf);
            }
            Long id = mgr.getUniqueInternalId();
            wf.setInternalId(id);
            mgr.addWorkflow(id, wf);

            final List<Workflow> wfList = new ArrayList<Workflow>(
                list);
            Display.getDefault().asyncExec(new Runnable() {
View Full Code Here

Examples of org.data2semantics.platform.core.Workflow

  @Test
  public void testAdjacencyWorkflow() throws Exception {
   
    WorkflowParser parser = new WorkflowParser();
   
    Workflow workflow = parser.parseYAML("src/main/resources/adjacency.yaml");
   
    ResourceSpace resourceSpace = new ResourceSpace();
   
    LocalExecutionProfile localExecutionProfile = new LocalExecutionProfile();
   
View Full Code Here

Examples of org.dspace.xmlworkflow.state.Workflow

                        String workflowID = XPathAPI.selectSingleNode(mainNode, "//workflow-map/name-map[@collection='default']").getAttributes().getNamedItem("workflow").getTextContent();
                        if(workflowID==null){
                            throw new WorkflowConfigurationException("No mapping is present for collection with handle:" + collection.getHandle());
                        }
                        Node workflowNode = XPathAPI.selectSingleNode(mainNode, "//workflow[@id='"+workflowID+"']");
                        Workflow wf = new Workflow(workflowID, getRoles(workflowNode));
                        Step step = createFirstStep(wf, workflowNode);
                        wf.setFirstStep(step);
                        workflowCache.put("default", wf);
                        workflowCache.put(collection.getHandle(), wf);
                        return wf;
                    }else{
                        return workflowCache.get("default");
                    }

                }else{
                    //We have a workflowID so retrieve it & resolve it to a workflow, also store it in our cache
                    String workflowID = workflowMap.getAttributes().getNamedItem("workflow").getTextContent();

                    Node workflowNode = XPathAPI.selectSingleNode(mainNode, "//workflow[@id='"+workflowID+"']");
                    Workflow wf = new Workflow(workflowID, getRoles(workflowNode));
                    Step step = createFirstStep(wf, workflowNode);
                    wf.setFirstStep(step);
                    workflowCache.put(collection.getHandle(), wf);
                    return wf;
                }
            } catch (Exception e){
                log.error("Error while retrieving workflow for collection: " + collection.getHandle(), e);
View Full Code Here

Examples of org.locationtech.udig.catalog.ui.workflow.Workflow

        // FIXME Andrea: Jody, this is the part that breaks DnD. Uncomment it to have it working
        // ResourceSearchState searchState = new ResourceSearchState();
        DataSourceSelectionState dsState = new DataSourceSelectionState(true);
        ResourceSelectionState rsState = new ResourceSelectionState();

        Workflow workflow = new Workflow(new State[]{dsState, rsState});
        // Workflow workflow = new Workflow(new State[] { searchState, rsState });
        return workflow;
    }
View Full Code Here

Examples of org.nasutekds.server.core.Workflow

    // Get the default network group and deregister all the workflows
    // being configured for the backend (there is one worklfow per
    // backend base DN).
    NetworkGroup defaultNetworkGroup = NetworkGroup.getDefaultNetworkGroup();
    Workflow workflow = defaultNetworkGroup.deregisterWorkflow(baseDN);
    WorkflowImpl workflowImpl = (WorkflowImpl) workflow;

    // The workflow ID is "backendID + baseDN".
    // We cannot use backendID as workflow identifier because a backend
    // may handle several base DNs. We cannot use baseDN either because
View Full Code Here

Examples of org.syrup.Workflow

            // If the Result is of type Workflow, create additional (child)
            // PTasks.
            if (r instanceof Workflow)
            {
                Workflow w = (Workflow) r;

                Task[] tt = w.tasks();
                Link[] ll = w.links();

                Hashtable tkeyMap = new Hashtable();

                // For each newly created PTask there is an associated key.
                // These keys are used to connect Links later.

                for (int i = 0; i < tt.length; i++)
                {
                    String key = sqlImpl().creationFunctions().newTask(tt[i], r.context().task(), con);
                    tkeyMap.put(tt[i], key);
                }

                for (int j = 0; j < ll.length; j++)
                {
                    sqlImpl().creationFunctions().newLink(ll[j], tkeyMap, con);
                }

                // Rewires the Links stated by the Context bindings
               
                String in_link_1 = sqlImpl().queryFunctions().readInTask(kk, false, con);
                String in_link_2 = sqlImpl().queryFunctions().readInTask(kk, true, con);
                String out_link_1 = sqlImpl().queryFunctions().readOutTask(kk, false, con);
                String out_link_2 = sqlImpl().queryFunctions().readOutTask(kk, true, con);
               
                sqlImpl().updateFunctions().rewireInLink(kk, false, w.in_1_binding(), tkeyMap, con);
                sqlImpl().updateFunctions().rewireInLink(kk, true, w.in_2_binding(), tkeyMap, con);
                sqlImpl().updateFunctions().rewireOutLink(kk, false, w.out_1_binding(), tkeyMap, con);
                sqlImpl().updateFunctions().rewireOutLink(kk, true, w.out_2_binding(), tkeyMap, con);
               
                // For each new PTask, check if it is done.
                for (int k = 0; k < tt.length; k++)
                {
                    String kkey = (String) tkeyMap.get(tt[k]);
View Full Code Here

Examples of uk.org.ogsadai.client.toolkit.Workflow

  public void submitted(Location location, Object workflowObject, ResourceID resourceID) {
      //LOG.debug("location: " + location);
      //LOG.debug("workflow: " + workflowObject);
      //LOG.debug("resourceID: " + resourceID);
     
      Workflow workflow = (Workflow) workflowObject;
      RequestAndStatusHandler handler = workflow.getRequestAndStatusHandler();
      DocumentRequestBuilder builder = new DocumentRequestBuilder();
      try {
      handler.buildRequest(builder);
    } catch (ActivityIllegalStateException e) {
      LOG.error("Exception in converting the workflow to XML", e);
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.