Package pl.net.bluesoft.rnd.processtool.steps

Examples of pl.net.bluesoft.rnd.processtool.steps.ProcessToolProcessStep


    if (pi.getInternalId() == null) {
        pi.setInternalId(context.getScopeInstance().getExecution().getProcessInstance().getId());
        dao.saveProcessInstance(pi);
    }

    final ProcessToolProcessStep stepInstance = ctx.getRegistry().getStep(stepName);
    if (stepInstance == null) {
        throw new IllegalArgumentException("No step defined by name: " + stepName);
    }
    String res;
    try {
        PropertyAutoWiring.autowire(stepInstance, params);
        final BpmStep step = prepareStep(pi);
        res = watch.watchTask("actual step execution", new Callable<String>() {
        @Override
        public String call() throws Exception {
          return stepInstance.invoke(step, params);
        }
        });
    } catch (Exception e) {
        throw new RuntimeException(e);
    }
View Full Code Here


                params = (Map) xs.fromXML(xml);
            }
        }

        try {
            ProcessToolProcessStep stepInstance = ptc.getRegistry().getStep(stepName);
            if (stepInstance == null) {
                throw new IllegalArgumentException("No step defined by name: " + stepName);
            }
            processAutowiredProperties(stepInstance, params);
            res = stepInstance.invoke(prepareStep(pi, execution), params);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }

        for (ProcessInstanceAttribute pia : pi.getProcessAttributes()) {
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.processtool.steps.ProcessToolProcessStep

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.