1ª Engine admin section can cancel processes Index: app/controllers/eadmin_controller.rb =================================================================== --- app/controllers/eadmin_controller.rb (revisión: 1010) +++ app/controllers/eadmin_controller.rb (copia de trabajo) @@ -45,8 +45,12 @@
def index + @status = $openwferu_engine.list_process_status + end - @status = $openwferu_engine.list_process_status.to_s + def cancel_process + $openwferu_engine.cancel_process(params[:wfid]) + redirect_to :action => "index" end end Index: app/views/eadmin/index.rhtml =================================================================== --- app/views/eadmin/index.rhtml (revisión: 1010) +++ app/views/eadmin/index.rhtml (copia de trabajo) @@ -1,10 +1,16 @@ +<table border=0> +<tr><td>Workflow ID</td><td>Name</td><td>Errors</td><td>Paused</ td><td></td></tr> +<% [EMAIL PROTECTED] do |status| +%> +<tr><td><%=status.wfid%></td> +<td><%=status.errors.length%></td> +<td><%=status.errors.length%></td> +<td><%=status.paused?%></td> +<td><%= link_to 'Cancel', :action => 'cancel_process',:wfid => status.wfid%></td> +</tr> +<% +end +%> +</table> -<i>coming soon...</i> - -<br/> -<br/> -<br/> - -<pre> -<%= @status %> -</pre> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenWFEru dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/openwferu-dev?hl=en -~----------~----~----~----~------~----~------~--~---
