Examples of IContentWorkFlowActionHelper


Examples of com.agiletec.plugins.jpcontentworkflow.apsadmin.content.helper.IContentWorkFlowActionHelper

*/
public class ContentStepTag extends StrutsBodyTagSupport {
 
  @Override
  public int doStartTag() throws JspException {
    IContentWorkFlowActionHelper helper = (IContentWorkFlowActionHelper) ApsWebApplicationUtils.getBean("jpcontentworkflowContentActionHelper", pageContext);
    try {
      Content content = this.getContent();
      String stepCode = null;
      if (this.isNextStep()) {
        stepCode = helper.getNextStep(content.getStatus(), content.getTypeCode());
      } else {
        stepCode = helper.getPreviousStep(content.getStatus(), content.getTypeCode());
      }
      if (null != this.getVar()) {
        ValueStack stack = this.getStack();
        stack.getContext().put(this.getVar(), stepCode);
              stack.setValue("#attr['" + this.getVar() + "']", stepCode, false);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.