Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Sphinx/digests"

Line 15: Line 15:
 
===Create a new dyamic/binary workflow===
 
===Create a new dyamic/binary workflow===
 
* Create a plug-in project in runtime/development workspace
 
* Create a plug-in project in runtime/development workspace
* Add a dependency to org.eclipse.sphinx.emf.mwe.dynamic
+
* Add a dependency to the '''org.eclipse.sphinx.emf.mwe.dynamic''' plug-in
* Create a Java or Xtend class that extends WorkspaceWorkflow
+
* Create a Java or Xtend class that extends '''WorkspaceWorkflow'''
* Create Java or Xtend classes that extend ''AbstractWorkspaceWorkflowComponent'' or ''AbstractModelWorkflowComponent''
+
* Create Java or Xtend classes that extend '''AbstractWorkspaceWorkflowComponent''' or '''AbstractModelWorkflowComponent'''
 
* Add workflow components to workflow
 
* Add workflow components to workflow
 
===Contribute a binary workflow===
 
===Contribute a binary workflow===
* Use ''org.eclipse.sphinx.emf.mwe.dynamic.workflowContributors'' extension point
+
* Use '''org.eclipse.sphinx.emf.mwe.dynamic.workflowContributors''' extension point
 
===Run a dynamic or binary workflow interactively===
 
===Run a dynamic or binary workflow interactively===
 
* Right-click on workflow file to execute or model file(s)/element(s) to operate on
 
* Right-click on workflow file to execute or model file(s)/element(s) to operate on
* ''Run Workflow > Run...''
+
* Select '''Run Workflow > Run...'''
 
===Run a dynamic or binary workflow from the command line===
 
===Run a dynamic or binary workflow from the command line===
* Use ''org.eclipse.sphinx.emf.mwe.dynamic.headless.WorkflowRunner'' application
+
* Use '''org.eclipse.sphinx.emf.mwe.dynamic.headless.WorkflowRunner''' application
 
* Specify workspace-relative workflow path or qualified workflow class name using '''-workflow''' option
 
* Specify workspace-relative workflow path or qualified workflow class name using '''-workflow''' option
 
* Specify absolute/relative model file/element URI using '''-model''' option
 
* Specify absolute/relative model file/element URI using '''-model''' option
 
===Create a workflow handler===
 
===Create a workflow handler===
* Use ''org.eclipse.sphinx.emf.mwe.dynamic.workflowHandlers'' extension point
+
* Use '''org.eclipse.sphinx.emf.mwe.dynamic.workflowHandlers''' extension point

Revision as of 04:19, 9 July 2015

Dynamic workflows

  • Based on MWE2 workflows
  • Can be written in Java or Xtend
  • Can operate on EMF models (handed in and out via slots)
  • Dymamic execution of workflows located in workspace (i.e., within same JVM instance)
  • Execution of binary workflows located in workflow contributor plug-ins

Extras

  • Command line execution
  • Workflow handlers (pre/post run hooks)
  • Support of metamodels without Sphinx integration

How-tos

Create a new dyamic/binary workflow

  • Create a plug-in project in runtime/development workspace
  • Add a dependency to the org.eclipse.sphinx.emf.mwe.dynamic plug-in
  • Create a Java or Xtend class that extends WorkspaceWorkflow
  • Create Java or Xtend classes that extend AbstractWorkspaceWorkflowComponent or AbstractModelWorkflowComponent
  • Add workflow components to workflow

Contribute a binary workflow

  • Use org.eclipse.sphinx.emf.mwe.dynamic.workflowContributors extension point

Run a dynamic or binary workflow interactively

  • Right-click on workflow file to execute or model file(s)/element(s) to operate on
  • Select Run Workflow > Run...

Run a dynamic or binary workflow from the command line

  • Use org.eclipse.sphinx.emf.mwe.dynamic.headless.WorkflowRunner application
  • Specify workspace-relative workflow path or qualified workflow class name using -workflow option
  • Specify absolute/relative model file/element URI using -model option

Create a workflow handler

  • Use org.eclipse.sphinx.emf.mwe.dynamic.workflowHandlers extension point

Back to the top