1. Tasks
  2. Morph Stub

Tasks

Morph Stub

The morph stub task is used to morph a stub’s program to another program. A program is defined as the combination of a template, branch, and context.

Use Cases

  • Use this task to morph a customer stub between different templates for different processes (e.g., marketing, support, etc.).

Basic Usage

Morph a stub to another context:

loading...

Parameters

templateuuid
optional
string

The UUID of the template to morph the stub to.

Default: ~~stub.program.templateuuid


branch
optional
string

The branch of the template to morph the stub to — either live or draft.

Default: ~~stub.program.branch


context
optional
string

The context to morph the stub to, e.g., _manage, default, _create, _all.

Default: ~~stub.program.context


state
optional
string

The state to morph the stub to — such as active or inactive. The state must exist in the target program you are morphing into.

Default: ~~stub.program.state

Result

loading...
NOTE

After morphing is complete, the stub will trigger a _morph lifecycle action.

Properties

from_program

The original program the stub was morphed from, including the template UUID, branch, context, and state.


to_program

The program the stub was morphed to, including the template UUID, branch, context, and the new state.


Examples

Morph a stub to another context

Stay on the same branch and template, but change the context:

loading...

Morph a stub to another template

Change the template, but stay on the same branch and context:

loading...