Package com.yworkflow.instance.extension
Interface WorkflowInstanceAttributeRegister<T>
- Type Parameters:
T- the type of attribute data to register
- All Superinterfaces:
WorkflowInstanceExtension
Interface for implementing custom workflow instance attribute registers.
WorkflowInstanceAttributeRegister provides a way to load and register transient attributes during
workflow instance execution, with access to the workflow instance context and register
configuration.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionregisterAttribute(WorkflowExecutionContext context, Register register, Attributes args) Registers attributes for the workflow instance based on the register configuration.Methods inherited from interface com.yworkflow.instance.extension.WorkflowInstanceExtension
getPriority, getRegistration
-
Method Details
-
registerAttribute
T registerAttribute(WorkflowExecutionContext context, Register register, Attributes args) throws WorkflowException Registers attributes for the workflow instance based on the register configuration.- Parameters:
context- the workflow instance contextregister- the register configurationargs- attribute register arguments- Returns:
- the registered attribute data
- Throws:
WorkflowException- if there's an error registering the attributes
-