Package org.uengine.contexts

Examples of org.uengine.contexts.TextContext


      selectMapping = new ParameterContext[selectFieldAndVariables.size()];
      parametersForSQLActivity = new ParameterContext[whereClausePCList.size()];
      for(int i=0; i< selectFieldAndVariables.size();i++){
        selectMapping[i] = new ParameterContext();
        Vector fieldAndVariable = (Vector) selectFieldAndVariables.get(i);
        TextContext tc = new TextContext();
        tc.setText((String)fieldAndVariable.get(0));
        selectMapping[i].setArgument(tc);
        selectMapping[i].setVariable((ProcessVariable)fieldAndVariable.get(1));
      }   
    }
   
View Full Code Here


  public Role getRole() {
    return approver==null ? super.getRole() : new Role(){
     
      public TextContext getDisplayName() {
        TextContext tc = TextContext.createInstance();
       
        tc.setText(createApproverRoleName());
        return tc;
      }

      public RoleMapping getMapping(ProcessInstance inst, String tracingTag) throws Exception {
       
View Full Code Here

  public Role getRole() {
    return getApprover()==null ? super.getRole() : new Role(){
     
      public TextContext getDisplayName() {
        TextContext tc = TextContext.createInstance();
       
        tc.setText("user");
        return tc;
      }

      public RoleMapping getMapping(ProcessInstance inst, String tracingTag) throws Exception {
        return getApprover();
View Full Code Here

      instance.putRoleMapping(getRole().getName(), (String)value);
    }
  }
 
  public TextContext getDisplayName() {
    TextContext result = new TextContext(){

      public String getText(String locale) {
        return "[Role]" + getRole().getDisplayName().getText(locale);
      }
     
View Full Code Here

      public String getName() {
        return getDisplayName().getText();
      }

      public TextContext getDisplayName() {
        TextContext tc = TextContext.createInstance();
       
        tc.setText(createApproverRoleName());
        return tc;
      }

      public RoleMapping getMapping(ProcessInstance inst, String tracingTag) throws Exception {
       
View Full Code Here

  public void setName(String name) {
    this.name = name;
  }
  public TextContext getDisplayName() {
    if(displayName.getText()==null){
      TextContext result = TextContext.createInstance();
      result.setText(getName());
      return result;
    }
   
    return displayName;
  }
View Full Code Here

  }

  TextContext displayName = TextContext.createInstance();
    public TextContext getDisplayName() {
      if(displayName.getText()==null){
        TextContext tc = TextContext.createInstance();
        tc.setText(getListFieldType().getFieldName());
        return tc;
      }
      return displayName;
    }
View Full Code Here

    public void setFormatString(TextContext formatString) {
      this.formatString = formatString;
    }
   
  public Object getFieldValue(final ProcessInstanceDAO instanceDAO, Map genericContext) throws Exception{
    TextContext formatString = getFormatString();
    String fStr = formatString.getText();
   
    if(fStr!=null){
      ExpressionFormatter ef = new ExpressionFormatter(){
        public Object formatExpression(String expression) {
          try {
View Full Code Here

    for (Role role : roles) {
      if (displayName.length() > 0) displayName.append("+");
      displayName.append(role.getDisplayName());
    }
   
    TextContext dispTextContext = TextContext.createInstance();
    dispTextContext.setText(displayName.toString());
   
    return dispTextContext;
  }
View Full Code Here

    }

  TextContext displayName = TextContext.createInstance()
    public TextContext getDisplayName(){
      if(displayName.getText()==null){
        TextContext result = TextContext.createInstance();
        result.setText(getName());
        return result;
      }
     
      return displayName;
   
View Full Code Here

TOP

Related Classes of org.uengine.contexts.TextContext

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.