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
subProcess-Id and variables
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
  2 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
 
Klaus Schmidtmamn  
View profile  
 More options Jun 7 2012, 12:10 pm
From: Klaus Schmidtmamn <kschmidtman...@gmail.com>
Date: Thu, 7 Jun 2012 09:10:43 -0700 (PDT)
Local: Thurs, Jun 7 2012 12:10 pm
Subject: subProcess-Id and variables
Hello John,

it's me again! Is there a simple way, to get the sub-process-id and
all subprocess-variables by a given Process-Instance-ID within a ruby
class (e.g. my Workflow-Controller)?

Thank You and Greetings

Klaus


 
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 Jun 7 2012, 2:51 pm
From: John Mettraux <jmettr...@gmail.com>
Date: Fri, 8 Jun 2012 03:51:11 +0900
Local: Thurs, Jun 7 2012 2:51 pm
Subject: Re: [ruote:3571] subProcess-Id and variables

On Thu, Jun 07, 2012 at 09:10:43AM -0700, Klaus Schmidtmamn wrote:

> it's me again! Is there a simple way, to get the sub-process-id and
> all subprocess-variables by a given Process-Instance-ID within a ruby
> class (e.g. my Workflow-Controller)?

Hello Klaus,

a process instance id (wfid) points to a process instance, it doesn't point
to a subprocess, so it's not possible.

If you're interested in process variables and assuming you know the process
id (wfid):

---8<---
ps = $ruote_dashboard.ps(wfid)

p ps.variables
  # print variables at the root [expression] of the process
p ps.all_variables
  # print variables found in all expressions of the process
p ps.expressions.collect { |e| e.fei.to_storage_id }
  # print list of (string representations of) expressions
--->8---

Here is a list of the methods supported by ProcessStatus (whose instance are
returned by Ruote::Dashboard#ps(wfid)

  def root_expressions
  def root_expression_for(fei)
  def variables
  def all_variables
  def tags
  def all_tags
  def past_tags
  def wfid
  def definition_name
  def definition_revision
  def position
  def leaves
  def root_workitem
  def workitems
  def last_active
  def original_tree
  def launched_time
  def to_s
  def hinspect(indent, h)
  def inspect
  def to_dot(opts={})
  def to_h
  def current_tree

I hope this will help anyway.

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.
End of messages
« Back to Discussions « Newer topic     Older topic »