Steps
A creation template's spec.steps describes the actions that Witboost runs after a user submits the template. Steps can prepare files, publish a repository, register an entity, or perform another task needed to complete the creation workflow. See Creating Use Case Templates for how steps fit into a template definition.
Available steps
The Witboost Scaffolder makes the following core groups of actions available:
| Purpose | Actions | What they do |
|---|---|---|
| Prepare files | fetch:template, fetch:plain, fetch:plain:file, fs:delete, fs:rename | Retrieve or render template content and organize files in the workspace. |
| Work with the catalog | catalog:fetch, catalog:write, catalog:register | Retrieve catalog entities, write entity metadata, or register an entity. |
| Publish repositories | witboostMeshComponent:publish:gitlab, witboostMeshComponent:publish:github, witboostMeshComponent:publish:azure, witboostMeshComponent:publish:bitbucketServer | Publish generated content to a supported Git provider. Availability depends on the configured integrations. |
| Manage access and roles | rbac:action, access-request:send, revoke-request:send | Assign configured roles or submit access grant/revoke requests as part of a template workflow. |
| Utilities | debug:log, debug:wait | Log workflow information or pause a workflow. |
| Call a managed external service | witboost:http:request | Send an HTTP request to a destination configured by a platform administrator. |
The installed actions can vary by Witboost version and extensions. The Installed actions page under Administration > Templates shows the actions available in a specific platform and their input/output information.
Configure the HTTP request step
The HTTP request step lets a creation template contact an external service without embedding its destination and shared headers in the template. The platform administrator manages those reusable settings; the template author selects the configured destination and supplies request-specific information.
- Enable the capability. In Administration > Configuration > Platform > Webhooks, enable Trigger webhooks using HTTP Template Action.
- Configure the destination centrally. In Administration > Extension Manager > Webhooks, create or update the webhook with the destination URL and any shared headers. See Send notifications via Webhook for managing webhooks and headers.
- Use it from a template. Add the
witboost:http:requestaction to the template steps and reference the configured webhook by its identifier (webhookId). Keep the destination and shared credentials in the managed webhook configuration rather than copying them into template repositories.
For example, with webhook URL https://example.com/base/?env=dev, the following step calls https://example.com/base/v1/provision/test/status?env=prod when parameters.token is test:
- id: call-service
action: witboost:http:request
input:
webhookId: example-service
method: GET
path: '/v1/provision/${{ parameters.token }}/status'
queryParams:
env: prod
The optional path is appended to the webhook path with one slash at the junction. Without it, the configured path is unchanged.
queryParams adds query parameters and replaces configured values with matching keys. The path can contain template expressions, but the template must provide suitable token values: / creates another path segment, and ?, #, encoded separators, traversal segments, and absolute URLs are not permitted in the action path.
Put query parameters in queryParams, not in path.