Examples of JbpmCallback


Examples of org.springmodules.workflow.jbpm31.JbpmCallback

    public Long getNextTaskInstanceByActor(final String actor) {
        return getNextTaskInstanceByActorAndCriteria(actor, null);
    }

    public Map<String, Object> getProcessVariablesFor(final long processInstanceId) {
        Map<String, Object> variableMap = (Map<String, Object>) getJbpmTemplate().execute(new JbpmCallback() {
            public Object doInJbpm(JbpmContext jbpmContext) throws JbpmException {
                ProcessInstance pi = jbpmContext.getProcessInstance(processInstanceId);
                Map vars = pi.getContextInstance().getVariables();
                return vars;
            }
View Full Code Here

Examples of org.springmodules.workflow.jbpm31.JbpmCallback

        Collection<Long> tis = getOpenTaskInstancesByActorAndCriteria(actor, null);
        return tis;
    }

    public ProcessInstance createNewProcessInstance(final String defS) {
        ProcessInstance inst = (ProcessInstance) getJbpmTemplate().execute(new JbpmCallback() {
            public Object doInJbpm(JbpmContext ctx) throws JbpmException {
                ProcessDefinition def = ctx.getGraphSession().findLatestProcessDefinition(defS);
                ProcessInstance inst = def.createProcessInstance();
                return inst;
            }
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.