... | @@ -59,3 +59,38 @@ Although the main workflow focus is for things CMB does, we should design the wo |
... | @@ -59,3 +59,38 @@ Although the main workflow focus is for things CMB does, we should design the wo |
|
|
|
|
|
### Declarative vs. Procedural
|
|
### Declarative vs. Procedural
|
|
I think this question is best addressed after one or more use-cases have been examined. But to start, I would vote for an approach like Ansible, which uses a declarative specification (yml) at the top level, that can invoke programs and procedural scripts when processed by the Ansible runtime. In our case, for example, a user could "initialize" a new workflow by specifying a yml file to the workflow manager.
|
|
I think this question is best addressed after one or more use-cases have been examined. But to start, I would vote for an approach like Ansible, which uses a declarative specification (yml) at the top level, that can invoke programs and procedural scripts when processed by the Ansible runtime. In our case, for example, a user could "initialize" a new workflow by specifying a yml file to the workflow manager.
|
|
|
|
|
|
|
|
---
|
|
|
|
# from Yumin
|
|
|
|
### xml
|
|
|
|
<SMTK_AttributeManager Version="1">
|
|
|
|
<!--********** Workflows ***********-->
|
|
|
|
<Workflow Title="AdHSurfaceWater">
|
|
|
|
<Definitions>
|
|
|
|
</Definitions>
|
|
|
|
|
|
|
|
<Includes>
|
|
|
|
<!-- Uses definitions of polygon operators -->
|
|
|
|
<File>smtk/bridge/polygon/operators/extractedge.sbt</File>
|
|
|
|
<File>smtk/bridge/polygon/operators/editedge.sbt</File>
|
|
|
|
<File>smtk/bridge/polygon/operators/splitedge.sbt</File>
|
|
|
|
</Includes>
|
|
|
|
|
|
|
|
|
|
|
|
<Tasks Session="polygon">
|
|
|
|
<Task Type="ModelEntityOperation" Title="Entity Operations">
|
|
|
|
<Type>extract edges from image</Type>
|
|
|
|
<Type>edit edge</Type>
|
|
|
|
<Type>split edge</Type>
|
|
|
|
</Task>
|
|
|
|
<Task Type="MeshingOperation" Title="Meshing Operation" />
|
|
|
|
<Task Type="AssignAttribute" Title="Assign Attribute" />
|
|
|
|
<Task Type="ExportSimulation" Title="Export Simulation" />
|
|
|
|
</Tasks>
|
|
|
|
|
|
|
|
</Workflow>
|
|
|
|
</SMTK_AttributeManager>
|
|
|
|
|
|
|
|
### mockup
|
|
|
|
|
|
|
|
![Screen_Shot_2016-07-25_at_1.31.47_PM](/uploads/2321a2d60ae084b3562d0f964c46eacd/Screen_Shot_2016-07-25_at_1.31.47_PM.png) |
|
|
|
\ No newline at end of file |