Package org.jbpm.services.task.impl.model.xml

Examples of org.jbpm.services.task.impl.model.xml.JaxbTask


  
    @Test
    public void jsonTaskStringTest() throws Exception {
        objectMapper.configure(SerializationConfig.Feature.INDENT_OUTPUT, true);

       JaxbTask serverTask = new JaxbTask();
       List<I18NText> names = new ArrayList<I18NText>();
       serverTask.setPriority(2);
       serverTask.setNames(names);
       serverTask.setId(6l);
       JaxbI18NText text = new JaxbI18NText();
       text.setId(2l);
       text.setLanguage("nl-NL");
       text.setText("Doei!");
       names.add(text);
       JaxbTaskData taskData = new JaxbTaskData();
       serverTask.setJaxbTaskData(taskData);
       taskData.setActualOwnerId("me");
       taskData.setCreatedById("you");
       taskData.setCreatedOn(new Date());
       taskData.setDeploymentId("this");
       taskData.setDocumentContentId(0l);
View Full Code Here


        T cmdResult =  command.execute(context);
        if( cmdResult == null ) {
            return null;
        }
        if( cmdResult instanceof Task) {
            cmdResult = (T) new JaxbTask((Task) cmdResult);
        } else if( cmdResult instanceof Content) {
            cmdResult = (T) new JaxbContent((Content) cmdResult);
        } else if (cmdResult instanceof Map) {
            Map output = (Map) cmdResult;
            cmdResult = (T) new JaxbContent();
View Full Code Here

    }
   
    @Override
    public Response getTask(long taskId) {
        TaskCommand<?> cmd = new GetTaskCommand(taskId);
        JaxbTask task = (JaxbTask) doRestTaskOperationWithTaskId(taskId, cmd);
        if( task == null ) {
            throw KieRemoteRestOperationException.notFound("Task " + taskId + " could not be found.");
        }
        return createCorrectVariant(task, headers);
    }
View Full Code Here

TOP

Related Classes of org.jbpm.services.task.impl.model.xml.JaxbTask

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.