Class ServiceNode
java.lang.Object
com.aquima.interactions.portal.model.flow.NodeBase
com.aquima.interactions.portal.model.flow.ServiceNode
- All Implemented Interfaces:
IActionNodeDetails
,INodeDetails
,INodeDetailsWithDebugIdentifier
,Serializable
public class ServiceNode
extends NodeBase
implements IActionNodeDetails, INodeDetailsWithDebugIdentifier
Node class for the flow engine to represent a service.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ServiceNode
(NodeID id, IServiceCallDefinition definition) ServiceNode
(NodeID id, String serviceCallName, String serviceTypeName, IParameters parameters, ExitEvent[] exitEvents) Constructs a service node with the specified ID, name, type and parameters. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the call name of the service this node represents.This method returns an array with the possible exit states of the action.This method returns the parameters for the service.This method returns the type name of the service this node represents.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.aquima.interactions.flow.INodeDetails
getNodeId
-
Constructor Details
-
ServiceNode
public ServiceNode(NodeID id, String serviceCallName, String serviceTypeName, IParameters parameters, ExitEvent[] exitEvents) Constructs a service node with the specified ID, name, type and parameters. This constructor is used when restoring a session from XML.- Parameters:
id
- The ID of the node.serviceCallName
- The invocation name of the service.serviceTypeName
- The type name of the service.parameters
- The parameters of the service.exitEvents
- The exit events for this service node.
-
ServiceNode
-
-
Method Details
-
getActionId
This method returns the call name of the service this node represents.- Specified by:
getActionId
in interfaceIActionNodeDetails
- Returns:
- The call name of the service
-
getServiceTypeName
This method returns the type name of the service this node represents.- Returns:
- The type name of the service
-
getParameters
This method returns the parameters for the service.- Returns:
- the parameters for the service.
-
getExitStates
Description copied from interface:IActionNodeDetails
This method returns an array with the possible exit states of the action. Each exit state will be mapped to an edge in the flow to determine the next node. The actual result of the action node (executed by the flow handler) will be used to choose the correct edge.- Specified by:
getExitStates
in interfaceIActionNodeDetails
- Returns:
- an array with the possible exit states of the action.
-
getDebugIdentifier
- Specified by:
getDebugIdentifier
in interfaceINodeDetailsWithDebugIdentifier
-
toString
-