Examples of Pageflow


Examples of org.jboss.seam.pageflow.Pageflow

  
   public void storePageflow()
   {
      if ( Init.instance().isJbpmInstalled() )
      {
         Pageflow pageflow = Pageflow.instance();
         if ( pageflow.isInProcess() /*&& !pageflow.getProcessInstance().hasEnded()*/ && Manager.instance().isLongRunningConversation() )
         {
            pageflowName = pageflow.getSubProcessInstance().getProcessDefinition().getName();
            pageflowNodeName = pageflow.getNode().getName();
            pageflowCounter = pageflow.getPageflowCounter();
         }
         else
         {
            pageflowName = null;
            pageflowNodeName = null;
View Full Code Here

Examples of org.jrest4guice.rest.annotations.PageFlow

        throw new Need2RedirectException(redirectUrl);
      }
     
      ServiceResult httpResult = ServiceResult.createHttpResult(result);
      // 获取模板路径
      PageFlow annotation = method.getAnnotation(PageFlow.class);
      if (annotation == null) {
        writeTextPlain(out, httpResult);
      } else {
        PageInfo pageInfo = null;
        if (result instanceof Exception) {
          pageInfo = annotation.error();
          if (result instanceof ValidatorException) {
            httpResult
                .setInvalidValues(((ValidatorException) result)
                    .getInvalidValues());
            session.setAttribute(ServiceResult.INVALID_VALUE_KEY,
                httpResult.getInvalidValues());
          }

        } else {
          pageInfo = annotation.success();
          Object invalidValues = session
              .getAttribute(ServiceResult.INVALID_VALUE_KEY);
          if (invalidValues != null) {
            httpResult
                .setInvalidValues((InvalidValue[]) invalidValues);
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.