Package com.aquima.web.aaas
Interface BaasFlowStarter
- All Known Implementing Classes:
DefaultBaasFlowStarter
public interface BaasFlowStarter
Flow starter for Blueriq as a Service.
To use a custom flow starter for BAAS, One instance of this interface may be exposed in the Spring Application
Context. If no custom flow starter exists, then the default implementation,
DefaultBaasFlowStarter
, is used
to start BAAS flows.- Since:
- 11.4
- Author:
- Petru Galanton
-
Method Summary
Modifier and TypeMethodDescriptioncom.aquima.interactions.portal.IPortalSession
createSession
(com.aquima.interactions.portal.IApplication application) Creates the portal session in which the BAAS flow executes.void
startFlow
(com.aquima.interactions.portal.IApplication application, com.aquima.interactions.portal.IWebServiceOperationDefinition operation, com.aquima.interactions.portal.IPortalSession session) Starts the flow (if any) for the given web service operation in the given session.
-
Method Details
-
createSession
com.aquima.interactions.portal.IPortalSession createSession(com.aquima.interactions.portal.IApplication application) Creates the portal session in which the BAAS flow executes.- Parameters:
application
- the application for which a session should be created- Returns:
- the created session, never null.
-
startFlow
void startFlow(com.aquima.interactions.portal.IApplication application, com.aquima.interactions.portal.IWebServiceOperationDefinition operation, com.aquima.interactions.portal.IPortalSession session) Starts the flow (if any) for the given web service operation in the given session.When this method is called, the input mapping (if any) of the operation is already performed. Implementations should check if the operation has an associated flow. It is not an error when the web service operation doesn't have a flow. In this case, implementations should simply return.
- Parameters:
application
- the application definitionoperation
- the web service operationsession
- the session in which the flow should be started
-