Package org.intalio.tempo.workflow.tms.client

Examples of org.intalio.tempo.workflow.tms.client.TempoClient.claim()


                        + task.getFormURLAsString() + "\nIt is in the following state:" + task.getState() + "\nIt has the following input:\n"
                        + task.getInputAsXmlString() + "\nIt can be assigned to the following roles:" + task.getRoleOwners()
                        + "\nIt can be assigned to the following users:" + task.getUserOwners());

        _log.info("Let's claim the task: no one else can access this task apart from user:" + user);
        tempoClient.claim(id, user);
        _log.info("Let's revoke the task:every one can access this task again");
        tempoClient.revoke(id);
        _log.info("Call setoutput from TMS Client");
        tempoClient.setOutput(id, tempoClient.createMessageAsDocument(complete, "abr_output.ftl"));
        _log.info("Check the output we've just set");
View Full Code Here


        Thread.sleep(SLEEP_TIME);
        String id = tempoClient.getAvailableTasks("PATask", "T._description like '%Approval%' ORDER BY T._creationDate DESC")[0].getID();
        SecureRandom r = new SecureRandom();
        for (int i = 0; i < 10; i++) {
            if (r.nextBoolean()) {
              tempoClient.claim(id, paramUser);
            } else {
              tempoClient.revoke(id);
            }
        }
    }
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.