GrailsFlow

Initiated workflows overview

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0
  • Fix Version/s: 1.0.12
  • Component/s: None
  • Labels:
    None
  • Request Controller:
    Please Select
  • External Supervisor:
    Please select
  • Executing Programmer:
    Voitovich, Mary
  • Current Estimated Hours:
    6
  • Ext Project Id:
    AUDI-01.15

Description

A new dialog showing all not-yet-completed workflows started by a certain user should be created.

The Initiated Workflows-screen will consist of search parameters on the top of the screen and a results table below. The columns of the results table can be
configured manually and will drive possible search criteria based on process variables.

The user will have the opportunity to add and remove search criteria using Add/Removce-buttons. If the user clicks on the remove button, the selected search criteria will be removed. If the user selects the Add-button, a new line (i.e. a new search parameter) will be added to the existing list. It consists of a drop down menu that contains the columns of the result table below and a second drop down menu that contains possible values.
Essentially, the exact same functionality is implemented when using the product editor to search for products and filter them based on their various attribute values.
The last part of the search criteria section is the "Search‟ button. If the user clicks on it, a search will be triggered using the specified search criteria as parameters.
A search with no search parameters, except filtering on the currently logged-in user is executed upon first loading the page.

The process list is a table consisting of standard columns (specified below) and a number of user-configured columns, containing information on workflows initiated by the user logged in currently.
Each entry (i.e. line) will represent one initiated workflow.
The standard columns that will always be part of the table are:

  • Process ID
  • <Process variables>
  • Start date
  • Active node
  • Link to detail dialog (see chapter below for details)
  • External link (configurable)
    The additional user-specified columns are configured offline, similar to the worklist.
    All columns of the table (the standard ones, as well as the configurable ones) can be used to sort the table entries in ascending or descending order.

Issue Links

Activity

Hide
Voitovich, Maria added a comment - 13/Jan/11 2:20 PM - edited

To configure search parameters and result columns for there are two beans processListSearchParameters and processListDisplayParameters in the application context.

Search parameters configuration

processListSearchParameters is list of com.jcatalog.grailsflow.search.SearchParameter objects.

There are some predefined search parameters beans which may be used as entries in processListSearchParameters:

  • processTypeSearchProperty – drop-down for choosing Process type
  • processStatusSearchProperty – drop-down for choosing Process status
  • startedFromSearchProperty, finishedFromSearchProperty – date pickers for defining of start date interval
  • userSearchProperty – input field for defining name of the user who was started Process

Besides of these you can specify search criterions for process variables:

<bean class="com.jcatalog.grailsflow.search.DefaultSearchParameter">
  <property name="name" value="vars.productId"/>
</bean>

This code specifies search parameter for productId process variable. vars.productId value form grailsflow.processList bundle will be used as label for this search parameter.

The example of the processListSearchParameters bean definition:

<bean id="processListSearchParameters" class="java.util.ArrayList">
  <constructor-arg>
    <list>
      <ref bean="processTypeSearchProperty" />
      <ref bean="processStatusSearchProperty" />
      <ref bean="startedFromSearchProperty" />
      <ref bean="finishedFromSearchProperty" />
      <ref bean="userSearchProperty" />
      <bean class="com.jcatalog.grailsflow.search.DefaultSearchParameter">
        <property name="name" value="vars.productId"/>
      </bean>
      <bean class="com.jcatalog.grailsflow.search.DefaultSearchParameter">
        <property name="name" value="vars.catalogId"/>
      </bean>
    </list>
  </constructor-arg>
</bean>

Result columns configuration

processListDisplayParameters is list of com.jcatalog.grailsflow.search.DisplayParameter objects.

There are some predefined result columns beans which may be used as entries in processListDisplayParameters:

  • processTypeDisplayProperty – Process type
  • processStatusDisplayProperty – Process status
  • createdOnDisplayProperty, createdByDisplayProperty – Created on/by properties of the process
  • activeNodesDisplayProperty – List of process active nodes
  • finishedOnDisplayProperty – Finished on

Besides of these you can specify display columns for process variables:

<bean class="com.jcatalog.grailsflow.search.DefaultDisplayParameter">
  <property name="name" value="vars.productId"/>
  <property name="displayProperty" value="vars.productId"/>
</bean>

This code defines result column for productId process variable. vars.productId (bean's 'name' property) value form grailsflow.processList bundle will be used as label for this column.

The example of the processListDisplayParameters bean definition:

<bean id="processListDisplayParameters" class="java.util.ArrayList">
  <constructor-arg>
    <list>
      <ref bean="processTypeDisplayProperty" />
      <ref bean="processStatusDisplayProperty" />
      <ref bean="createdOnDisplayProperty" />
      <ref bean="createdByDisplayProperty" />
      <ref bean="activeNodesDisplayProperty" />
      <ref bean="finishedOnDisplayProperty" />
      <bean class="com.jcatalog.grailsflow.search.DefaultDisplayParameter">
        <property name="name" value="vars.productId"/>
        <property name="displayProperty" value="vars.productId"/>
      </bean>
      <bean class="com.jcatalog.grailsflow.search.DefaultDisplayParameter">
        <property name="name" value="vars.catalogId"/>
        <property name="displayProperty" value="vars.catalogId"/>
      </bean>
    </list>
  </constructor-arg>
</bean>

For more information please check javadocs and source code of the com.jcatalog.grailsflow.search package.

Show
Voitovich, Maria added a comment - 13/Jan/11 2:20 PM - edited To configure search parameters and result columns for there are two beans processListSearchParameters and processListDisplayParameters in the application context.

Search parameters configuration

processListSearchParameters is list of com.jcatalog.grailsflow.search.SearchParameter objects. There are some predefined search parameters beans which may be used as entries in processListSearchParameters:
  • processTypeSearchProperty – drop-down for choosing Process type
  • processStatusSearchProperty – drop-down for choosing Process status
  • startedFromSearchProperty, finishedFromSearchProperty – date pickers for defining of start date interval
  • userSearchProperty – input field for defining name of the user who was started Process
Besides of these you can specify search criterions for process variables:
<bean class="com.jcatalog.grailsflow.search.DefaultSearchParameter">
  <property name="name" value="vars.productId"/>
</bean>
This code specifies search parameter for productId process variable. vars.productId value form grailsflow.processList bundle will be used as label for this search parameter. The example of the processListSearchParameters bean definition:
<bean id="processListSearchParameters" class="java.util.ArrayList">
  <constructor-arg>
    <list>
      <ref bean="processTypeSearchProperty" />
      <ref bean="processStatusSearchProperty" />
      <ref bean="startedFromSearchProperty" />
      <ref bean="finishedFromSearchProperty" />
      <ref bean="userSearchProperty" />
      <bean class="com.jcatalog.grailsflow.search.DefaultSearchParameter">
        <property name="name" value="vars.productId"/>
      </bean>
      <bean class="com.jcatalog.grailsflow.search.DefaultSearchParameter">
        <property name="name" value="vars.catalogId"/>
      </bean>
    </list>
  </constructor-arg>
</bean>

Result columns configuration

processListDisplayParameters is list of com.jcatalog.grailsflow.search.DisplayParameter objects. There are some predefined result columns beans which may be used as entries in processListDisplayParameters:
  • processTypeDisplayProperty – Process type
  • processStatusDisplayProperty – Process status
  • createdOnDisplayProperty, createdByDisplayProperty – Created on/by properties of the process
  • activeNodesDisplayProperty – List of process active nodes
  • finishedOnDisplayProperty – Finished on
Besides of these you can specify display columns for process variables:
<bean class="com.jcatalog.grailsflow.search.DefaultDisplayParameter">
  <property name="name" value="vars.productId"/>
  <property name="displayProperty" value="vars.productId"/>
</bean>
This code defines result column for productId process variable. vars.productId (bean's 'name' property) value form grailsflow.processList bundle will be used as label for this column. The example of the processListDisplayParameters bean definition:
<bean id="processListDisplayParameters" class="java.util.ArrayList">
  <constructor-arg>
    <list>
      <ref bean="processTypeDisplayProperty" />
      <ref bean="processStatusDisplayProperty" />
      <ref bean="createdOnDisplayProperty" />
      <ref bean="createdByDisplayProperty" />
      <ref bean="activeNodesDisplayProperty" />
      <ref bean="finishedOnDisplayProperty" />
      <bean class="com.jcatalog.grailsflow.search.DefaultDisplayParameter">
        <property name="name" value="vars.productId"/>
        <property name="displayProperty" value="vars.productId"/>
      </bean>
      <bean class="com.jcatalog.grailsflow.search.DefaultDisplayParameter">
        <property name="name" value="vars.catalogId"/>
        <property name="displayProperty" value="vars.catalogId"/>
      </bean>
    </list>
  </constructor-arg>
</bean>
For more information please check javadocs and source code of the com.jcatalog.grailsflow.search package.

People

Vote (0)
Watch (0)

Dates

  • Created:
    25/Nov/10 1:23 PM
    Updated:
    24/Feb/12 8:45 AM
    Resolved:
    24/Feb/12 8:45 AM