Skip to content

Instantly share code, notes, and snippets.

@kennethkalmer
Created November 18, 2009 13:09
Show Gist options
  • Save kennethkalmer/237829 to your computer and use it in GitHub Desktop.
Save kennethkalmer/237829 to your computer and use it in GitHub Desktop.
var proc_rep = ["define",{"name":"foo"},[["sequence",{},[["participant",{"activity":"Foo","ref":"nada"},[]]]]]];
4 FluoCan.renderFlow( 'fluo', proc_rep, { 'workitems' : ['0_0_0'] } );
5 FluoCan.crop('fluo');
def process_tree( object )
case object
when Ruote::Workitem
process = engine.process( object.fei.wfid )
process.current_tree.to_json
end
end
:javascript
var proc_rep = #{process_tree( @workitem )};
FluoCan.renderFlow( 'fluo', proc_rep, { 'workitems' : ['#{@workitem.fei.expid}'] } );
FluoCan.crop('fluo');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment