Package org.nuxeo.ecm.automation

Examples of org.nuxeo.ecm.automation.OperationChain


        assertEquals(1, list.size());

        OperationContext ctx = new OperationContext(session);
        assertNotNull(ctx);

        OperationChain chain = new OperationChain("fakeChain");
        OperationParameters oParams = new OperationParameters(
                GetSocialWorkspaceMembers.ID);
        oParams.set("pattern", "testU%");
        oParams.set("page", 0);
        oParams.set("pageSize", 5);
        oParams.set("contextPath", "/testSocialWorkspace");
        chain.add(oParams);

        Blob result = (Blob) automationService.run(ctx, chain);
        JSONObject o = JSONObject.fromObject(result.getString());
        JSONArray array = (JSONArray) o.get("users");
        assertEquals(1, array.size());
View Full Code Here


        try (CoreSession newSession = openSessionAs("Leela")) {
            OperationContext ctx = new OperationContext(newSession);
            assertNotNull(ctx);

            OperationChain chain = new OperationChain(
                    "testUserActivityStreamOperation");
            chain.add(GetActivityStream.ID);
            Blob result = (Blob) automationService.run(ctx, chain);
            assertNotNull(result);
            String json = result.getString();
            assertNotNull(json);
View Full Code Here

TOP

Related Classes of org.nuxeo.ecm.automation.OperationChain

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.