3. Implementing an Operation using Actions and Steps

PROBLEM

An operation defines an operation interface (inputs and outputs) and operation resources (variables and constances) for implementing a Service function. The Spring annotated code and configurations for the operation are generated by Skyway Builder according to it's definition, but the logic still needs to be implemented. At this point the developer has benefited greatly from code generation, but code generation shouldn't stop short of implementing the real business logic.

SOLUTION

A developer can implement the logic of an operation using a sequence of Actions, which represent a single thread of execution.

HOW IT WORKS

Actions implement the logic of an operation, and Skyway Builder enables a Action to be implemented using a model-based approach, that defines the logic to be performed by configuring and sequencing one or more Skyway Steps together.

Operation actions are implemented just like Actions in the web layer.

RELATED RECIPES

  1. Implementing Controller Methods using Actions and Steps

  2. Using Java Code, Spring Beans and Groovy with Services

  3. Using Java Code, Spring Beans and Groovy with Services

  4. Using Groovy in Actions