Programming with Content Services ES > Invoking LiveCycle ES Services from Custom Actions > Defining your application logic > Implementing the action executor class > Adding action parameters

Adding action parameters
To implement the addParameterDefinitions() method, you must go into its definition and create a new ParameterDefinition object, as shown in the following code example.
Example: Defining the parameter definition implementation
This example shows how to use the parameter list to add a new parameter definition. In this example, PARAM_REVIEWER_ID, PARAM_ASSIGNER_ID, and PARAM_REVIEW_DESC contain the names of the parameters.
// action parameters
// reviewer name
public static final String PARAM_REVIEWER_ID = "reviewer-id";
// assigner name
public static final String PARAM_ASSIGNER_ID = "assigner-id";
// review description
public static final String PARAM_REVIEW_DESC = "review-desc";
 
protected void addParameterDefinitions(List<ParameterDefinition> paramList) {
		paramList.add(new ParameterDefinitionImpl(PARAM_REVIEWER_ID, DataTypeDefinition.TEXT, false, getParamDisplayLabel(PARAM_REVIEWER_ID)));
		paramList.add(new ParameterDefinitionImpl(PARAM_ASSIGNER_ID, DataTypeDefinition.TEXT, false, getParamDisplayLabel(PARAM_ASSIGNER_ID)));
		paramList.add(new ParameterDefinitionImpl(PARAM_REVIEW_DESC, DataTypeDefinition.TEXT, false, getParamDisplayLabel(PARAM_REVIEW_DESC))); 
}

Programming with Content Services ES > Invoking LiveCycle ES Services from Custom Actions > Defining your application logic > Implementing the action executor class > Adding action parameters

Programming with LiveCycle ES (LiveDocs)
Adobe LiveCycle ES Update 1

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/001567_2.html