Package org.intalio.tempo.workflow.task

Examples of org.intalio.tempo.workflow.task.PATask.authorizeActionForUser()


  private PATask getSampleTask(TaskState state) throws URISyntaxException,
      Exception {
    String id = String.valueOf(new Object().hashCode());
    PATask task1 = new PATask(id, new URI("http://hellonico.net"),
        "processId", "soap", getXmlSampleDocument());
    task1.authorizeActionForUser("save", "examples\\manager");
    task1.setPriority(2);
    task1.setState(state);
    task1.getRoleOwners().add("role1");
    task1.getUserOwners().add("user1");
    return task1;
View Full Code Here


    public void testFullPAMarshallingRoundtrip() throws Exception {
        PATask task1 = new PATask("taskID", new URI("http://localhost/URL"), "processID", "urn:completeSOAPAction",
                TestUtils.createXMLDocument());
        task1.setPriority(new Integer(3));
        task1.authorizeActionForRole("save", "intalio\\engineer");
        task1.authorizeActionForUser("save", "david");
        Calendar c = Calendar.getInstance();
        c.add(Calendar.MONTH, 1);
        task1.setDeadline(c.getTime());
        task1.setCreationDate(new Date());
        task1.setPreviousTaskID("123");
View Full Code Here

        task.setFailureCode("FATAL");
        task.setFailureReason("Don't really know");
        task.setDeadline(new Date());
        task.setPriority(1);
        task.setProcessID("processID1");
        task.authorizeActionForUser("claim", "test/user1");
        task.authorizeActionForRole("revoke", "test/role1");

        task.addAttachment(new Attachment(new AttachmentMetadata(), new URL("http://localhost/url1")));
        AttachmentMetadata metadata = new AttachmentMetadata();
        metadata.setMimeType("image/jpeg");
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.