Examples of OMElementQueue


Examples of org.intalio.tempo.workflow.util.xml.OMElementQueue

    public Attachment unmarshalAttachment(OMElement rootElement) throws InvalidInputFormatException {
        if (rootElement == null) {
            throw new RequiredArgumentException("rootElement");
        }

        OMElementQueue rootQueue = new OMElementQueue(rootElement);

        OMElement metadataElement = this.requireElement(rootQueue, "attachmentMetadata");
        OMElementQueue metadataQueue = new OMElementQueue(metadataElement);

        AttachmentMetadata metadata = new AttachmentMetadata();
        String mimeType = this.expectElementValue(metadataQueue, "mimeType");
        if (mimeType != null) {
            metadata.setMimeType(mimeType);
View Full Code Here

Examples of org.intalio.tempo.workflow.util.xml.OMElementQueue

    public OMElement getTaskList(final OMElement requestElement) throws AxisFault {
        ITaskDAOConnection dao=null;
      try {
        dao=_taskDAOFactory.openConnection();
            OMElementQueue rootQueue = new OMElementQueue(requestElement);
            String participantToken = requireElementValue(rootQueue, "participantToken");
            final UserRoles user = _server.getUserRoles(participantToken);
      Task[] tasks = _server.getTaskList(dao,participantToken);
            OMElement result = marshalTasksList(user, tasks, "getTaskListResponse");
            return result;
View Full Code Here

Examples of org.intalio.tempo.workflow.util.xml.OMElementQueue

    public OMElement getTask(OMElement requestElement) throws AxisFault {
        ITaskDAOConnection dao=null;
      try {
        dao=_taskDAOFactory.openConnection();
            OMElementQueue rootQueue = new OMElementQueue(requestElement);
            String taskID = requireElementValue(rootQueue, "taskId");
            String participantToken = requireElementValue(rootQueue, "participantToken");
            final UserRoles user = _server.getUserRoles(participantToken);
            Task task = _server.getTask(dao,taskID, participantToken);
            OMElement response = new TMSResponseMarshaller(OM_FACTORY) {
View Full Code Here

Examples of org.intalio.tempo.workflow.util.xml.OMElementQueue

    public OMElement create(OMElement requestElement) throws AxisFault {
        ITaskDAOConnection dao=null;
      try {
        dao=_taskDAOFactory.openConnection();
            OMElementQueue rootQueue = new OMElementQueue(requestElement);
            OMElement taskElement = requireElement(rootQueue, "task");
            Task task = new TaskUnmarshaller().unmarshalFullTask(taskElement);
            if (task instanceof PIPATask) {
                throw new InvalidInputFormatException("Not allowed to create() PIPA tasks");
            }
View Full Code Here

Examples of org.intalio.tempo.workflow.util.xml.OMElementQueue

   
    public OMElement update(OMElement requestElement) throws AxisFault {
      ITaskDAOConnection dao=null;
      try {
        dao=_taskDAOFactory.openConnection();
            OMElementQueue rootQueue = new OMElementQueue(requestElement);
            OMElement taskElement = requireElement(rootQueue, "taskMetadata");
            TaskMetadata metadata = new TaskUnmarshaller().unmarshalPartialTask2(taskElement);
            String participantToken = requireElementValue(rootQueue, "participantToken");
            _server.update(dao,metadata, participantToken);
            return createOkResponse();
View Full Code Here

Examples of org.intalio.tempo.workflow.util.xml.OMElementQueue

    public OMElement delete(OMElement requestElement) throws AxisFault {
      ITaskDAOConnection dao=null;
      try {
        dao=_taskDAOFactory.openConnection();
            OMElementQueue rootQueue = new OMElementQueue(requestElement);
            List<String> taskIDs = new ArrayList<String>();
            while (true) {
                String taskID = expectElementValue(rootQueue, "taskId");
                if (taskID != null)
                    taskIDs.add(taskID);
View Full Code Here

Examples of org.intalio.tempo.workflow.util.xml.OMElementQueue

    public OMElement deleteAll(OMElement requestElement) throws AxisFault {
      ITaskDAOConnection dao=null;
      try {
        dao=_taskDAOFactory.openConnection();
            OMElementQueue rootQueue = new OMElementQueue(requestElement);
            String taskType = expectElementValue(rootQueue, "taskType");
            String subquery = expectElementValue(rootQueue, "subQuery");
            boolean fakeDelete = Boolean.valueOf(requireElementValue(rootQueue, "fakeDelete"));
            String participantToken = requireElementValue(rootQueue, "participantToken");
            _server.deleteAll(dao,fakeDelete, subquery, taskType, participantToken);
View Full Code Here

Examples of org.intalio.tempo.workflow.util.xml.OMElementQueue

    public OMElement setOutput(OMElement requestElement) throws AxisFault {
      ITaskDAOConnection dao=null;
      try {
        dao=_taskDAOFactory.openConnection();
            OMElementQueue rootQueue = new OMElementQueue(requestElement);
            String taskID = requireElementValue(rootQueue, "taskId");
            OMElement omOutputContainer = requireElement(rootQueue, "data");
            Document domOutput = null;
            if (omOutputContainer.getFirstElement() != null) {
                domOutput = new TaskUnmarshaller().unmarshalTaskOutput(omOutputContainer);
View Full Code Here

Examples of org.intalio.tempo.workflow.util.xml.OMElementQueue

    public OMElement setOutputAndComplete(OMElement requestElement) throws AxisFault {
         ITaskDAOConnection dao=null;
      try {
        dao=_taskDAOFactory.openConnection();
            OMElementQueue rootQueue = new OMElementQueue(requestElement);
            String taskID = requireElementValue(rootQueue, "taskId");
            OMElement omOutputContainer = requireElement(rootQueue, "data");
            Document domOutput = null;
            if (omOutputContainer.getFirstElement() != null) {
                domOutput = new TaskUnmarshaller().unmarshalTaskOutput(omOutputContainer);
View Full Code Here

Examples of org.intalio.tempo.workflow.util.xml.OMElementQueue

    public OMElement complete(OMElement requestElement) throws AxisFault {
      ITaskDAOConnection dao=null;
      try {
        dao=_taskDAOFactory.openConnection();
            OMElementQueue rootQueue = new OMElementQueue(requestElement);
            String taskID = requireElementValue(rootQueue, "taskId");
            String participantToken = requireElementValue(rootQueue, "participantToken");
            _server.complete(dao,taskID, participantToken);
             return createOkResponse();
        } catch (Exception e) {
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.