Package com.yworkflow.instance.extension
Interface WorkflowInstanceAttributeResolver
- All Superinterfaces:
WorkflowInstanceExtension
Interface for implementing custom workflow instance attribute resolvers.
WorkflowInstanceAttributeResolver provides a way to resolve and transform attributes during
workflow instance execution, with access to the workflow instance context and attribute data.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionresolve(WorkflowExecutionContext context, Attributes args) Resolves multiple attributes and returns them as mutable attributes.resolve(WorkflowExecutionContext context, String input, Attributes args) Resolves a single attribute value based on the input key.Methods inherited from interface com.yworkflow.instance.extension.WorkflowInstanceExtension
getPriority, getRegistration
-
Method Details
-
resolve
Optional<Object> resolve(WorkflowExecutionContext context, String input, Attributes args) throws AttributeException Resolves a single attribute value based on the input key.- Parameters:
context- the workflow instance contextinput- the input key to resolveargs- arguments- Returns:
- an Optional containing the resolved value, or empty if not resolved
- Throws:
AttributeException- if there's an error resolving the attribute
-
resolve
HashMutableAttributes resolve(WorkflowExecutionContext context, Attributes args) throws AttributeException Resolves multiple attributes and returns them as mutable attributes.- Parameters:
context- the workflow instance contextargs- workflow component arguments- Returns:
- the resolved attributes as mutable attributes
- Throws:
AttributeException- if there's an error resolving the attributes
-