Constructor and Description |
---|
FlowResource()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getFlowsByServiceInstance()
Returns the flows of the given service instance as a JSON array.
|
String |
getUserSegmentationsByServiceInstanceId()
Returns the user segmentations of the given service instance.
|
String |
quickSave(String flowId,
String flowDefinition)
Updates the definition of the flow with the given identifier.
|
static org.json.JSONObject |
toJSON(FlowEntry flowEntry)
Returns a JSON representation of the given flow.
|
@GET @Produces(value="application/json") @Path(value="/flows") public String getFlowsByServiceInstance() throws PortalException
PortalException
@Path(value="/flows/{id:[a-fA-F0-9]{32}}") @PUT @Consumes(value="application/json") @Produces(value="application/json") public String quickSave(@PathParam(value="id") String flowId, String flowDefinition) throws PortalException
flowId
- the flow identifierflowDefinition
- the flow definitionPortalException
@Path(value="/userSegmentations") @GET @Produces(value="application/json") public String getUserSegmentationsByServiceInstanceId() throws PortalException
PortalException
public static org.json.JSONObject toJSON(FlowEntry flowEntry)
flowEntry
- the flowLumisXP 12.1.0.191010 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.