Package com.yworkflow.instance.extension
Interface WorkflowInstanceFunction
- All Superinterfaces:
WorkflowInstanceExtension
Interface for implementing custom workflow instance functions. WorkflowInstanceFunction provides
a way to execute custom business logic during workflow instance execution, with access to the
workflow instance context and function execution details.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(WorkflowExecutionContext context, FunctionContext functionContext, Function function, Attributes args) Executes the custom function with the provided context and attributes.Methods inherited from interface com.yworkflow.instance.extension.WorkflowInstanceExtension
getPriority, getRegistration
-
Method Details
-
execute
void execute(WorkflowExecutionContext context, FunctionContext functionContext, Function function, Attributes args) throws WorkflowException Executes the custom function with the provided context and attributes.- Parameters:
context- the workflow instance contextfunctionContext- the function execution contextfunction- the function definitionargs- function arguments- Throws:
WorkflowException- if there's an error executing the function
-