Examples of executeDeadlinePlugin()


Examples of org.joget.workflow.model.dao.WorkflowHelper.executeDeadlinePlugin()

        deadline.setDeadlineLimit((int) limitInSecond * 1000);

        ApplicationContext appContext = WorkflowUtil.getApplicationContext();
        WorkflowHelper workflowMapper = (WorkflowHelper) appContext.getBean("workflowHelper");

        WorkflowDeadline newDeadline = workflowMapper.executeDeadlinePlugin(processId, activityId, deadline, null, startTime, createdTime);

        Calendar calendar = Calendar.getInstance();
        calendar.setTime(createdTime);
        calendar.add(Calendar.MILLISECOND, newDeadline.getDeadlineLimit());
        return calendar.getTime();
View Full Code Here

Examples of org.joget.workflow.model.dao.WorkflowHelper.executeDeadlinePlugin()

            try {
                WorkflowDeadline workflowDeadline = new WorkflowDeadline();
                workflowDeadline.setContext(context);
                workflowDeadline.setDeadlineExpression(expr);

                WorkflowDeadline newDeadline = workflowMapper.executeDeadlinePlugin(procId, actId, workflowDeadline, (Date) context.get(SharkConstants.PROCESS_STARTED_TIME), (Date) context.get(SharkConstants.ACTIVITY_ACCEPTED_TIME), (Date) context.get(SharkConstants.ACTIVITY_ACTIVATED_TIME));

                expr = newDeadline.getDeadlineExpression();
            } catch (Exception e) {
                //ignore
            }
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.