Package com.opensymphony.workflow.query

Examples of com.opensymphony.workflow.query.FieldExpression


  public String getCurrentState() {
    return ((Step) this.template.getCurrentSteps().get(0)).getStatus();
  }

  public List getUnderwayWorkflows() {
    Expression queryRight = new FieldExpression(FieldExpression.STATE,
            FieldExpression.ENTRY,
            FieldExpression.EQUALS,
            new Integer(WorkflowEntry.ACTIVATED));

    Expression queryLeft = new FieldExpression(FieldExpression.NAME,
            FieldExpression.ENTRY,
            FieldExpression.EQUALS,
            this.template.getWorkflowName());

    WorkflowExpressionQuery query = new WorkflowExpressionQuery(
View Full Code Here


          Iterator ownersIterator = owners.iterator();
          int i = 0;
          while(ownersIterator.hasNext())
          {
            Owner owner = (Owner)ownersIterator.next();
            Expression expression = new FieldExpression(FieldExpression.OWNER, FieldExpression.CURRENT_STEPS, FieldExpression.EQUALS, owner.getIdentifier());
            expressions[i] = expression;
            i++;
          }       
         
          final Set workflowVOs = new HashSet();
View Full Code Here

   */
  private List<WorkflowVO> findActiveWorkflows() throws SystemException
  {
    try
    {
      List<WorkflowVO> workflows = workflow.query(new WorkflowExpressionQuery(new FieldExpression(FieldExpression.STATE, FieldExpression.ENTRY, FieldExpression.EQUALS, new Integer(WorkflowEntry.ACTIVATED))));
      return workflows;
      //return workflow.query(new WorkflowExpressionQuery(new FieldExpression(FieldExpression.STATE, FieldExpression.ENTRY, FieldExpression.EQUALS, new Integer(WorkflowEntry.ACTIVATED))));
    }
    catch (WorkflowException e)
    {
View Full Code Here

   */
  private List findWorkflows(final Owner owner) throws SystemException
  {
    try
    {
      List workflows = workflow.query(new WorkflowExpressionQuery(new FieldExpression(FieldExpression.OWNER,
          FieldExpression.CURRENT_STEPS, FieldExpression.EQUALS, owner.getIdentifier())));

      return workflows;
    }
    catch (WorkflowException e)
View Full Code Here

TOP

Related Classes of com.opensymphony.workflow.query.FieldExpression

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.