Package org.intalio.tempo.workflow.util

Examples of org.intalio.tempo.workflow.util.RequiredArgumentException


    }

    public void fail(final String taskID, final String failureCode, final String failureReason) throws AuthException, UnavailableTaskException,
                    InvalidTaskStateException {
        if (taskID == null) {
            throw new RequiredArgumentException("taskID");
        }
        if (failureCode == null) {
            throw new RequiredArgumentException("failureCode");
        }
        if (failureReason == null) {
            throw new RequiredArgumentException("failureReason");
        }

        OMElement request = new TMSMarshaller() {
            public OMElement marshalRequest() {
                OMElement request = createElement("failRequest");
View Full Code Here


        sendRequest(request, TaskXMLConstants.TASK_NAMESPACE + "fail");
    }

    public void delete(final String[] taskIDs) throws AuthException, UnavailableTaskException {
        if (taskIDs == null) {
            throw new RequiredArgumentException("taskIDs");
        }
        if (taskIDs.length == 0) {
            throw new IllegalArgumentException("Task ID array is empty");
        }

        OMElement request = new TMSMarshaller() {
            public OMElement marshalRequest() {
                OMElement request = createElement("deleteRequest");
                for (String taskID : taskIDs) {
                    if (taskID == null) {
                        throw new RequiredArgumentException("One of the given taskID's is null");
                    }
                    createElement(request, "taskId", taskID);
                }
                createElement(request, "participantToken", _participantToken);
View Full Code Here

        sendRequest(request, TaskXMLConstants.TASK_NAMESPACE + "deleteAll");
    }

    public void create(final Task task) throws AuthException, TaskIDConflictException {
        if (task == null) {
            throw new RequiredArgumentException("task");
        }

        OMElement request = new TMSMarshaller() {
            public OMElement marshalRequest() {
                OMElement request = createElement("createTaskRequest");
View Full Code Here

        sendRequest(request, TaskXMLConstants.TASK_NAMESPACE + "create");
    }
   
    public void update(final Task task) throws AuthException, UnavailableTaskException {
        if (task == null) {
            throw new RequiredArgumentException("task");
        }

        OMElement request = new TMSMarshaller() {
            public OMElement marshalRequest() {
                OMElement request = createElement("updateTaskRequest");
View Full Code Here

        sendRequest(request, TaskXMLConstants.TASK_NAMESPACE + "update");
    }

    public Document init(final String taskID, final Document input) throws AuthException, UnavailableTaskException {
        if (taskID == null) {
            throw new RequiredArgumentException("taskID");
        }
        if (input == null) {
            throw new RequiredArgumentException("input");
        }

        final XmlTooling xmlTooling = new XmlTooling();
        OMElement request = new TMSMarshaller() {
            public OMElement marshalRequest() {
View Full Code Here

        return xmlTooling.convertOMToDOM(userProcessResponse);
    }

    public Attachment[] getAttachments(final String taskID) throws AuthException, UnavailableTaskException {
        if (taskID == null) {
            throw new RequiredArgumentException("taskID");
        }

        OMElement request = new TMSMarshaller() {
            public OMElement marshalRequest() {
                OMElement request = createElement("getAttachmentsRequest");
View Full Code Here

        }
    }

    public void addAttachment(final String taskID, final Attachment attachment) throws AuthException, UnavailableTaskException {
        if (taskID == null) {
            throw new RequiredArgumentException("taskID");
        }
        if (attachment == null) {
            throw new RequiredArgumentException("attachment");
        }

        OMElement request = new TMSMarshaller() {
            public OMElement marshalRequest() {
                OMElement request = createElement("addAttachmentRequest");
View Full Code Here

    }

    public void removeAttachment(final String taskID, final URL attachmentPayloadURL) throws AuthException, UnavailableTaskException,
                    UnavailableAttachmentException {
        if (taskID == null) {
            throw new RequiredArgumentException("taskID");
        }
        if (attachmentPayloadURL == null) {
            throw new RequiredArgumentException("attachmentPayloadURL");
        }

        OMElement request = new TMSMarshaller() {
            public OMElement marshalRequest() {
                OMElement request = createElement("addAttachmentRequest");
View Full Code Here

        sendRequest(request, TaskXMLConstants.TASK_NAMESPACE + "removeAttachment");
    }

    public void reassign(final Task task) throws AuthException, UnavailableTaskException {
        if (task == null) {
            throw new RequiredArgumentException("task");
        }
        if (!(task instanceof PATask)) {
            throw new UnavailableTaskException("Task is not PATask");
        }
View Full Code Here

    }

    public void reassign(final String[] taskIds, final AuthIdentifierSet users, final AuthIdentifierSet roles, final TaskState state) throws AuthException,
                    UnavailableTaskException {
        if (taskIds == null) {
            throw new RequiredArgumentException("taskID");
        }

        OMElement request = new TMSMarshaller() {
            public OMElement marshalRequest() {
                OMElement request = createElement("reassignRequest");
View Full Code Here

TOP

Related Classes of org.intalio.tempo.workflow.util.RequiredArgumentException

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.