Your first workflow
A learning-oriented walkthrough that takes you from nothing to a complete, running workflow. It builds on the Quick start, which shows the full assembly; here we focus on running a workflow and reading its result.
By the end you will have:
- bootstrapped the runtime,
- supplied a workflow definition validated against the schema,
- executed the workflow and observed its events and final status.
Running the workflow and reading its terminal state is the whole loop — this is the runnable
quick-start example, included from source:
QuickStartExample.java
AgentForge4j agentForge4j = assemble();
String runId = agentForge4j.start(WORKFLOW_ID);
WorkflowState state = agentForge4j.runtime().getState(runId);
System.out.printf("Workflow '%s' (run %s) finished with status: %s%n", WORKFLOW_ID, runId, state.getStatus());
System.out.printf("Step outputs: %s%n", state.getStepOutputs());
When you are comfortable with the basics, move on to the goal-oriented How-to Guides and the Concepts.