Class FlowResource


  • @Path("/lumis/service/analytics/automationflow/{si: [a-fA-F0-9]{32}}")
    public class FlowResource
    extends AbstractMonitorResource
    REST API for automation flow.
    Since:
    12.0.0
    Version:
    $Revision: 23925 $ $Date: 2020-06-25 10:52:10 -0300 (Thu, 25 Jun 2020) $
    • Constructor Detail

      • FlowResource

        public FlowResource()
        Default constructor.
        Since:
        12.0.0
    • Method Detail

      • getFlowsByServiceInstance

        @GET
        @Produces("application/json")
        @Path("/flows")
        public String getFlowsByServiceInstance()
                                         throws PortalException
        Returns the flows of the given service instance as a JSON array.
        Returns:
        the flows of the given service instance as a JSON array.
        Throws:
        PortalException
        Since:
        12.0.0
      • quickSave

        @Path("/flows/{id:[a-fA-F0-9]{32}}")
        @PUT
        @Consumes("application/json")
        @Produces("application/json")
        public String quickSave​(@PathParam("id")
                                String flowId,
                                String flowDefinition)
                         throws PortalException
        Updates the definition of the flow with the given identifier.
        Parameters:
        flowId - the flow identifier
        flowDefinition - the flow definition
        Returns:
        the updated flow.
        Throws:
        PortalException
        Since:
        12.0.0
      • getUserSegmentationsByServiceInstanceId

        @Path("/userSegmentations")
        @GET
        @Produces("application/json")
        public String getUserSegmentationsByServiceInstanceId()
                                                       throws PortalException
        Returns the user segmentations of the given service instance.
        Returns:
        the user segmentations of the given service instance.
        Throws:
        PortalException
        Since:
        12.0.0
      • toJSON

        public static org.json.JSONObject toJSON​(FlowEntry flowEntry)
        Returns a JSON representation of the given flow.
        Parameters:
        flowEntry - the flow
        Returns:
        a JSON representation of the given flow.
        Since:
        12.0.0