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$ $Date$
    • Constructor Detail

      • FlowResource

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

      • getFlowsByServiceInstance

        @GET
        @Produces("application/json")
        @Path("/flows")
        public java.lang.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 java.lang.String quickSave​(@PathParam("id")
                                          java.lang.String flowId,
                                          java.lang.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 java.lang.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