Package com.dotmarketing.portlets.chains

Examples of com.dotmarketing.portlets.chains.ChainControl


  }

  @Override
  public boolean run() {
   
    ChainControl control = getChainData();
    Map<String, Object> properties = control.getChainProperties();
    for(Entry<String, Object> entry : properties.entrySet()) {
      System.out.println(entry.getKey() + " = " + entry.getValue() + "\\n");
    }
    String returnError = (String) control.getChainProperty("returnError");
    String throwException = (String) control.getChainProperty("returnError");
    if(Boolean.parseBoolean(throwException)) {
      throw new RuntimeException ("I had to fail");
    }
    return Boolean.parseBoolean(returnError);
   
View Full Code Here

TOP

Related Classes of com.dotmarketing.portlets.chains.ChainControl

Copyright © 2018 www.massapicom. 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.