/*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.wso2.carbon.identity.workflow.template;
import org.wso2.carbon.identity.workflow.mgt.bean.metadata.InputData;
import org.wso2.carbon.identity.workflow.mgt.exception.WorkflowException;
import org.wso2.carbon.identity.workflow.mgt.exception.WorkflowRuntimeException;
import org.wso2.carbon.identity.workflow.mgt.template.AbstractTemplate;
public class MultiStepApprovalTemplate extends AbstractTemplate {
private static final String DESCRIPTION = "The operation should be approved by an authorized person with given " +
"role, to complete.";
private static final String APPROVAL_TEMPLATE_NAME = "Multi-Step User/Role Approval";
private static final String TEMPLATE_ID = "MultiStepApprovalTemplate";
static {
/*TemplateParameterDef roleDef = new TemplateParameterDef();
roleDef.setParamName(WorkFlowConstants.TemplateConstants.SIMPLE_APPROVAL_USER_OR_ROLE_NAME);
roleDef.setParamType(WorkflowTemplateParamType.USER_NAME_OR_USER_ROLE);
roleDef.setDisplayName(WorkFlowConstants.TemplateConstants.SIMPLE_APPROVAL_USERS_OR_ROLES_DISPLAY_NAME);
roleDef.setMandatory(true);*/
//PARAMETER_DEFINITIONS = new TemplateParameterDef[]{roleDef};
}
@Override
protected InputData getInputData(String parameterName) throws WorkflowException {
InputData inputData = null;
return inputData;
}
public MultiStepApprovalTemplate(String metaDataXML) throws WorkflowRuntimeException {
super(metaDataXML);
}
@Override
public String getTemplateId() {
return TEMPLATE_ID;
}
@Override
public String getName() {
return APPROVAL_TEMPLATE_NAME;
}
@Override
public String getDescription() {
return DESCRIPTION;
}
}