Package org.kie.remote.jaxb.gen

Examples of org.kie.remote.jaxb.gen.JaxbStringObjectPairArray


        }
        return null;
    }

    public static JaxbStringObjectPairArray convertMapToJaxbStringObjectPairArray( Map<String, Object> map ) {
        JaxbStringObjectPairArray arrayMap = new JaxbStringObjectPairArray();

        if( map == null || map.isEmpty() ) {
            return arrayMap;
        }
        List<JaxbStringObjectPair> items = arrayMap.getItems();
        for( Entry<String, Object> entry : map.entrySet() ) {
            JaxbStringObjectPair pair = new JaxbStringObjectPair();
            pair.setKey(entry.getKey());
            pair.setValue(entry.getValue());
            items.add(pair);
View Full Code Here


    @Override
    public void fail( long taskId, String userId, Map<String, Object> faultData ) {
        FailTaskCommand cmd = new FailTaskCommand();
        cmd.setTaskId(taskId);
        cmd.setUserId(userId);
        JaxbStringObjectPairArray values = convertMapToJaxbStringObjectPairArray(faultData);
        cmd.setData(values);
        executeCommand(cmd);
    }
View Full Code Here

    @Override
    public long addTask( Task task, Map<String, Object> params ) {
        AddTaskCommand cmd = new AddTaskCommand();
        org.kie.remote.jaxb.gen.Task genTask = convertKieTaskToGenTask(task);
        cmd.setJaxbTask(genTask);
        JaxbStringObjectPairArray values = convertMapToJaxbStringObjectPairArray(params);
        cmd.setParameter(values);
        return (Long) executeCommand(cmd);
    }
View Full Code Here

    @Override
    public ProcessInstance startProcess( String processId, Map<String, Object> parameters ) {
        StartProcessCommand cmd = new StartProcessCommand();
        cmd.setProcessId(processId);
        JaxbStringObjectPairArray arrayMap = convertMapToJaxbStringObjectPairArray(parameters);
        cmd.setParameter(arrayMap);
        return (ProcessInstance) executeCommand(cmd);
    }
View Full Code Here

           
            @Override
            public void completeWorkItem( long id, Map<String, Object> results ) {
                CompleteWorkItemCommand cmd = new CompleteWorkItemCommand();
                cmd.setId(id);
                JaxbStringObjectPairArray arrayMap = convertMapToJaxbStringObjectPairArray(results);
                cmd.setResult(arrayMap);
                executeCommand(cmd);
            }
           
            @Override
View Full Code Here

TOP

Related Classes of org.kie.remote.jaxb.gen.JaxbStringObjectPairArray

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.