Package com.opensymphony.workflow.query

Examples of com.opensymphony.workflow.query.WorkflowExpressionQuery


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

    WorkflowExpressionQuery query = new WorkflowExpressionQuery(
            new NestedExpression(new Expression[]{queryRight, queryLeft}, NestedExpression.AND));

    return this.template.query(query);
  }
View Full Code Here


  }

  public void testQuery() throws Exception {
    bindMockInstanceIdToContext();

    final WorkflowExpressionQuery query = new WorkflowExpressionQuery();
    final List mockResult = new ArrayList();
    final MockControl ctl = createMockWorkflowControl();

    OsWorkflowTemplate template = new OsWorkflowTemplate() {
      protected Workflow createWorkflow(String caller) throws WorkflowException {
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

   */
  private List findWorkflows(final Expression[] expressions) throws WorkflowException
  {
    try
    {
      List workflows = workflow.query(new WorkflowExpressionQuery(new NestedExpression(expressions, NestedExpression.OR)));

      //List workflows = workflow.query(new WorkflowExpressionQuery(new FieldExpression(FieldExpression.OWNER, FieldExpression.CURRENT_STEPS, FieldExpression.EQUALS, owner.getIdentifier())));
      return workflows;
    }
    catch (WorkflowException we)
View Full Code Here

TOP

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

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.