Examples of ITaskWithDeadline


Examples of org.intalio.tempo.workflow.task.traits.ITaskWithDeadline

                taskMetadataElement.setFailureReason(taskWithState.getFailureReason());
            }
        }

        if (task instanceof ITaskWithDeadline) {
            ITaskWithDeadline crTask = (ITaskWithDeadline) task;
            if (crTask.getDeadline() != null)
                taskMetadataElement.setDeadline(new XsdDateTime(crTask.getDeadline()));
        }
        if (task instanceof ITaskWithPriority) {
            ITaskWithPriority crTask = (ITaskWithPriority) task;
            if (crTask.getPriority() != null)
                taskMetadataElement.setPriority(crTask.getPriority());
        }

        if (task instanceof ICompleteReportingTask) {
            ICompleteReportingTask crTask = (ICompleteReportingTask) task;
            taskMetadataElement.setUserProcessCompleteSOAPAction(crTask.getCompleteSOAPAction());
        }

        if (task instanceof ITaskWithAttachments) {
            ITaskWithAttachments taskWithAttachments = (ITaskWithAttachments) task;
            Attachments xmlAttachments = taskMetadataElement.addNewAttachments();
View Full Code Here

Examples of org.intalio.tempo.workflow.task.traits.ITaskWithDeadline

            }
        }

        // / the following is added to support task deadlines
        if (ITaskWithDeadline.class.isAssignableFrom(taskClass)) {
            ITaskWithDeadline taskWithDeadline = (ITaskWithDeadline) resultTask;
            try {
                Calendar deadline = taskMetadata.getDeadline();
                if (deadline != null) {
                    taskWithDeadline.setDeadline(deadline.getTime());
                } else {
                    // do nothing, deadline is null by default
                }
            } catch (XmlValueOutOfRangeException e) {
                // do nothing, not a valid xml date
            }

        }

        // the following is added to support task priorities
        if (ITaskWithPriority.class.isAssignableFrom(taskClass)) {
            ITaskWithPriority taskWithDeadline = (ITaskWithPriority) resultTask;
            taskWithDeadline.setPriority(priority);
        }

        return resultTask;
    }
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.