Class FieldChangedTriggerExecutor
java.lang.Object
com.codebarrel.automation.rulecomponent.jira.trigger.event.IssueEventTriggerExecutor
com.codebarrel.automation.rulecomponent.jira.trigger.fieldchanged.FieldChangedTriggerExecutor
- All Implemented Interfaces:
ComponentExecutor
,TriggerExecutor
-
Field Summary
FieldsFields inherited from class com.codebarrel.automation.rulecomponent.jira.trigger.event.IssueEventTriggerExecutor
addonProperties, issueEventMatcher, issueRefreshResolver, issueResolver
-
Constructor Summary
ConstructorsConstructorDescriptionFieldChangedTriggerExecutor
(IssueEventMatcher issueEventMatcher, ComponentIssueResolver issueResolver, SmartIssueInputPopulator smartIssueInputPopulator, AddonProperties addonProperties, FieldService fieldService, RemotePermissionService remotePermissionService, IssueRefreshResolver issueRefreshResolver, UserService userService, TenantService tenantService) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canHandle
(ComponentContext context, ComponentInputs inputs) Checks if a trigger can handle the inputs provided.execute
(ComponentContext context, ComponentInputs inputs, AuditComponentChangeBuilder audit) Executes an action, give the provided context and inputs.
-
Field Details
-
LINK_FIELD_NAME
- See Also:
-
-
Constructor Details
-
FieldChangedTriggerExecutor
@Inject public FieldChangedTriggerExecutor(IssueEventMatcher issueEventMatcher, ComponentIssueResolver issueResolver, SmartIssueInputPopulator smartIssueInputPopulator, AddonProperties addonProperties, FieldService fieldService, RemotePermissionService remotePermissionService, IssueRefreshResolver issueRefreshResolver, UserService userService, TenantService tenantService)
-
-
Method Details
-
canHandle
Description copied from interface:TriggerExecutor
Checks if a trigger can handle the inputs provided. This method should return false if no inputs are available that this component can process. Note that this will stop the rule from executing at that point, so if you want to do nothing in the rule, return true and do checks in the execute method.- Specified by:
canHandle
in interfaceTriggerExecutor
- Overrides:
canHandle
in classIssueEventTriggerExecutor
- Parameters:
context
- The context to execute this componentinputs
- Inputs needed by the component- Returns:
- false if this component can't handle the provided inputs.
-
execute
public ComponentExecutionResult execute(ComponentContext context, ComponentInputs inputs, AuditComponentChangeBuilder audit) Description copied from interface:ComponentExecutor
Executes an action, give the provided context and inputs. Implementations can pick and chose what inputs they wish to handle. Implementations can choose if they want to stop execution of the component chain by returning an appropriate execution reuls. Implementations can also add additional inputs for the next component in the chain.- Specified by:
execute
in interfaceComponentExecutor
- Overrides:
execute
in classIssueEventTriggerExecutor
- Parameters:
context
- The context to execute this componentinputs
- Inputs needed by the component- Returns:
- the outputs of this executor (inputs with additional stuff) and what should happen next.
-