Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Reporting against process task progress
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Damon Torgerson  
View profile  
 More options May 4 2012, 1:35 am
From: Damon Torgerson <da...@ranksix.com>
Date: Thu, 3 May 2012 22:35:25 -0700 (PDT)
Local: Fri, May 4 2012 1:35 am
Subject: Reporting against process task progress

Hi,

I've been looking for a few hours and can't seem to find what is probably
very basic.

I would like to report on all the processes that are currently in a
particular state.

For example, given this process defintion

    p = Ruote.process_definition :name => 'Transfer' do
      sequence do
        reviewer :task => 'verify information', :description => 'Verify
basic information'
        approver :task => 'assign transfer', :description => "Select the
location"
        reviewer :task => 'confirm transfer', :description => 'Admin
approval or denial.'
        email_system :task => 'email approval letter', :if => '${f.state}
== approved', :description => 'Approval email'
      end
    end

I would like to know how many processes are waiting to have information
verified, a transfer assigned, or a transfer confirmed.

Eg.

verify information: 20,
assign transfer: 30,
confirm transfer: 40

It seems that using the by_field method in storage participant helps me
achieve this outcome but I can't figure it out. It seems like this is
pretty straightforward stuff. What am I missing?

Really enjoying Ruote and all the efforts put into the project!

Sincerely,
Damon


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Mettraux  
View profile  
 More options May 4 2012, 3:18 am
From: John Mettraux <jmettr...@gmail.com>
Date: Fri, 4 May 2012 16:18:14 +0900
Local: Fri, May 4 2012 3:18 am
Subject: Re: [ruote:3526] Reporting against process task progress

Hello Damon,

I've played with a gist: https://gist.github.com/2592808

Effectively, you can't state "params.task" has the #by_field first argument.

I will add a #by_param to the storage participant. For your first question
I'd suggest using the technique shown in the gist.

Please tell me if it doesn't match your requirements or if your storage is
unhappy with that.

I hope it will help, best regards,

--
John Mettraux - http://lambda.io/jmettraux


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Damon Torgerson  
View profile  
 More options May 4 2012, 7:54 pm
From: Damon Torgerson <da...@ranksix.com>
Date: Fri, 4 May 2012 16:54:36 -0700 (PDT)
Local: Fri, May 4 2012 7:54 pm
Subject: Re: Reporting against process task progress

John,

Thank you so much for this! I was really just looking for a pointer to an
existing function or "it doesn't exist...sorry" and would have been happy
to muddle through. Not only did you go above and beyond but you provided me
an improved understanding of ruote.

Thanks again!

Sincerely,
Damon


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »