Interface BranchSubmissionService
- All Known Implementing Classes:
BranchSubmissionsServiceImpl
public interface BranchSubmissionService
Provides method around submitting async branches for future execution
-
Method Summary
Modifier and TypeMethodDescriptionintsubmitBranches(List<NextBranchExecution> branchExecutions, RuleComponent ruleComponent, ComponentContext context, long auditItemId, String executionUuid, Date branchDate) Branches next branch executions Currently ignores branches with empty components, modify ComponentChainImpl if changing this behavioursubmitExecutionFromWebhook(BranchComponentExecutionContext context, ComponentInputs inputs, long auditItemId, String executionUuid) Submits rule components for execution after the branchComponentId
-
Method Details
-
submitBranches
int submitBranches(List<NextBranchExecution> branchExecutions, RuleComponent ruleComponent, ComponentContext context, long auditItemId, String executionUuid, Date branchDate) Branches next branch executions Currently ignores branches with empty components, modify ComponentChainImpl if changing this behaviour- Parameters:
branchExecutions- Branches to executeruleComponent- Component to branch fromcontext- Component contextauditItemId- Audit item log idexecutionUuid- Execution uuidbranchDate- Date to record branch event- Returns:
- Number of branch items submitted
-
submitExecutionFromWebhook
Optional<Integer> submitExecutionFromWebhook(BranchComponentExecutionContext context, ComponentInputs inputs, long auditItemId, String executionUuid) Submits rule components for execution after the branchComponentId- Parameters:
context- BranchComponentExecutionContext contextinputs- Component inputsauditItemId- Audit item log idexecutionUuid- Execution uuid- Returns:
- Either the Number of branch items submitted, or empty if the rule or component has since been deleted (expected)
-