Skip to main content

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:

PurposeActionsWhat they do
Prepare filesfetch:template, fetch:plain, fetch:plain:file, fs:delete, fs:renameRetrieve or render template content and organize files in the workspace.
Work with the catalogcatalog:fetch, catalog:write, catalog:registerRetrieve catalog entities, write entity metadata, or register an entity.
Publish repositorieswitboostMeshComponent:publish:gitlab, witboostMeshComponent:publish:github, witboostMeshComponent:publish:azure, witboostMeshComponent:publish:bitbucketServerPublish generated content to a supported Git provider. Availability depends on the configured integrations.
Manage access and rolesrbac:action, access-request:send, revoke-request:sendAssign configured roles or submit access grant/revoke requests as part of a template workflow.
Utilitiesdebug:log, debug:waitLog workflow information or pause a workflow.
Call a managed external servicewitboost:http:requestSend 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.

  1. Enable the capability. In Administration > Configuration > Platform > Webhooks, enable Trigger webhooks using HTTP Template Action.
  2. 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.
  3. Use it from a template. Add the witboost:http:request action 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.

info

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.