TaskActionInformation¶
-
public class
TaskActionInformation
extends TaskEventInformation¶ Represents an action from a channel. An action is taken upon a task trigger. This class is the representation of the definition from the channel, not the representation of an usage within a task. An action can be represented as an event, but also as a direct OSGi message(or both - a service call with fallback event). It is part of the tasks model.
Constructors¶
TaskActionInformation¶
-
public
TaskActionInformation
(String displayName, String channelName, String moduleName, String moduleVersion, String subject)¶ Constructor.
Parameters: - displayName – the task display name
- channelName – the channel name
- moduleName – the module name
- moduleVersion – the module version
- subject – the task subject
TaskActionInformation¶
-
public
TaskActionInformation
(String displayName, String channelName, String moduleName, String moduleVersion, String subject, Map<String, String> values)¶ Constructor for an action that is an event sent by the task module.
Parameters: - displayName – the task display name
- channelName – the channel name
- moduleName – the module name
- moduleVersion – the module version
- subject – the task subject
- values – the map of values
TaskActionInformation¶
-
public
TaskActionInformation
(String displayName, String channelName, String moduleName, String moduleVersion, String serviceInterface, String serviceMethod)¶ Constructor for an action that is an OSGi service method call from the tasks module.
Parameters: - displayName – the task display name
- channelName – the channel name
- moduleName – the module name
- moduleVersion – the module version
- serviceInterface – the task service interface
- serviceMethod – the task service method
TaskActionInformation¶
-
public
TaskActionInformation
(String name, String displayName, String channelName, String moduleName, String moduleVersion, String serviceInterface, String serviceMethod)¶ Constructor.
Parameters: - name – the task name
- displayName – the task display name
- channelName – the channel name
- moduleName – the module name
- moduleVersion – the module version
- serviceInterface – the task service interface
- serviceMethod – the task service method
TaskActionInformation¶
-
public
TaskActionInformation
(String name, String specifiedName, String displayName, String channelName, String moduleName, String moduleVersion, String subject, String serviceInterface, String serviceMethod, Map<String, String> values)¶ Constructor for a task that is an OSGi service call from the tasks module, but falls back to sending an event if the service is not present
Parameters: - name – the task name
- specifiedName – the task action specified name
- displayName – the task display name
- channelName – the channel name
- moduleName – the module name
- moduleVersion – the module version
- subject – the task subject
- serviceInterface – the task service interface
- serviceMethod – the task service method
- values – the map of values
Methods¶
toDto¶
-
public TaskActionInformationDto
toDto
()¶