openworkflow_dart 0.1.0 copy "openworkflow_dart: ^0.1.0" to clipboard
openworkflow_dart: ^0.1.0 copied to clipboard

A workflow JSON Spec Parser for dart with service.

openworkflow_dart #

Workflow JSON Specification Parser with Execution Service.

Features #

  • Loads OpenWorkflow JSON files and converts them into Dart objects. See OpenWorkflow Specification
  • Provides a ready-to-use WorkflowService that, once instantiated, can invoke the functions contained in OpenTool in sequence and with input parameters, as configured in the JSON.
  • Supports multiple ToolDrivers, meaning the functions in the Workflow JSON file can originate from different OpenTools.

Usage #

  • Example JSON file: /example/openworkflow-crud-example.json
  • The corresponding OpenTool and ToolDriver used in the example can be found at: /example/custom_driver
  • Example of how to invoke: /example/openworkflow_dart_example.dart
Future<void> main() async {
  ToolDriver mockDriver = await _buildToolDriver();
  OpenWorkflow openWorkflow = await _buildWorkflow();
  Session session = _buildSession();

  WorkflowService workflow = WorkflowService([mockDriver], openWorkflow, session);

  workflow.run();
}
0
likes
90
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

A workflow JSON Spec Parser for dart with service.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

json_annotation, opentool_dart

More

Packages that depend on openworkflow_dart