public interface WorkflowPluginFactory
There are two methods to implement - getVelocityParams
provides parameters for the velocity template that configures the plugin, and getDescriptorParams(java.util.Map)
parses the velocity form submission, and extracts plugin args from it.
AbstractJiraFunctionProvider
Modifier and Type | Method and Description |
---|---|
Map<String,?> |
getDescriptorParams(Map<String,Object> formParams)
Given a set of name:value parameters from the plugin configuration page (ie.
|
Map<String,?> |
getVelocityParams(String resourceName,
com.opensymphony.workflow.loader.AbstractDescriptor descriptor)
Given a plugin resource name, return the parameters it needs.
|
Map<String,?> getVelocityParams(String resourceName, com.opensymphony.workflow.loader.AbstractDescriptor descriptor)
resourceName
- Typically "view", "input-parameters" or "edit-parameters".descriptor
- A ConditionDescriptor
describing the Condition and its current configuration.Map<String,?> getDescriptorParams(Map<String,Object> formParams)
execute()
or conditions' passesCondition
methods.
The velocity page often submits values in array form, and this method extracts just the relevant value.formParams
- Parameters from the velocity template, eg. {"fieldId" : ["assignee"], "fieldValue":["-1"]}Copyright © 2002-2021 Atlassian. All Rights Reserved.