Package org.apache.syncope.common.to

Examples of org.apache.syncope.common.to.WorkflowDefinitionTO


    @Override
    public WorkflowDefinitionTO getDefinition()
            throws WorkflowException {

        return new WorkflowDefinitionTO();
    }
View Full Code Here


        add(createNotificationWin = new ModalWindow("createNotificationWin"));
        add(editNotificationWin = new ModalWindow("editNotificationWin"));
        setupNotification();

        // Workflow definition stuff
        final WorkflowDefinitionTO workflowDef = wfRestClient.getDefinition();

        WebMarkupContainer workflowDefContainer = new WebMarkupContainer("workflowDefContainer");

        Form wfForm = new Form("workflowDefForm", new CompoundPropertyModel(workflowDef));
View Full Code Here

    @Override
    public WorkflowDefinitionTO getDefinition()
            throws WorkflowException {

        return new WorkflowDefinitionTO();
    }
View Full Code Here

public class WorkflowTestITCase extends AbstractTest {

    @Test //TODO TestCase needs to be extended
    public void testGetUserDefinition() {
        WorkflowDefinitionTO definition = workflowService.getDefinition(AttributableType.USER);
        assertNotNull(definition);
    }
View Full Code Here

        assertNotNull(definition);
    }

    @Test //TODO TestCase needs to be extended
    public void testGetRoleDefinition() {
        WorkflowDefinitionTO definition = workflowService.getDefinition(AttributableType.ROLE);
        assertNotNull(definition);
    }
View Full Code Here

    @Test//TODO TestCase needs to be extended
    public void testUpdateUserDefinition() {
        Assume.assumeTrue(ActivitiDetector.isActivitiEnabledForUsers());

        WorkflowDefinitionTO definition = workflowService.getDefinition(AttributableType.USER);
        assertNotNull(definition);

        workflowService.updateDefinition(AttributableType.USER, definition);
        WorkflowDefinitionTO newDefinition = workflowService.getDefinition(AttributableType.USER);
        assertNotNull(newDefinition);
    }
View Full Code Here

    @Test//TODO TestCase needs to be extended
    public void testUpdateRoleDefinition() {
        Assume.assumeTrue(ActivitiDetector.isActivitiEnabledForRoles());

        WorkflowDefinitionTO definition = workflowService.getDefinition(AttributableType.ROLE);
        assertNotNull(definition);

        workflowService.updateDefinition(AttributableType.ROLE, definition);
        WorkflowDefinitionTO newDefinition = workflowService.getDefinition(AttributableType.ROLE);
        assertNotNull(newDefinition);
    }
View Full Code Here

    @Autowired
    private RoleWorkflowAdapter rwfAdapter;

    private WorkflowDefinitionTO getDefinition(final WorkflowAdapter adapter) throws WorkflowException {
        WorkflowDefinitionTO result = adapter.getDefinition();

        auditManager.audit(Category.workflow, WorkflowSubCategory.getDefinition, Result.success,
                "Successfully read workflow definition");

        return result;
View Full Code Here

        } finally {
            IOUtils.closeQuietly(reader);
            IOUtils.closeQuietly(procDefIS);
        }

        WorkflowDefinitionTO definitionTO = new WorkflowDefinitionTO();
        definitionTO.setId(ActivitiUserWorkflowAdapter.WF_PROCESS_ID);
        definitionTO.setXmlDefinition(writer.toString());

        return definitionTO;
    }
View Full Code Here

        } finally {
            IOUtils.closeQuietly(reader);
            IOUtils.closeQuietly(procDefIS);
        }

        WorkflowDefinitionTO definitionTO = new WorkflowDefinitionTO();
        definitionTO.setId(ActivitiUserWorkflowAdapter.WF_PROCESS_ID);
        definitionTO.setXmlDefinition(writer.toString());

        return definitionTO;
    }
View Full Code Here

TOP

Related Classes of org.apache.syncope.common.to.WorkflowDefinitionTO

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.