Skip to content

Create commercial peer

A creation workflow for adding a new Commercial Peer to the service database.

initial_input_form_generator(product_name)

Gather information to create a new Commercial Peer.

Source code in gso/workflows/commercial_peer/create_commercial_peer.py
def initial_input_form_generator(product_name: str) -> FormGenerator:
    """Gather information to create a new Commercial Peer."""

    class CreateCommercialPeerForm(FormPage):
        model_config = ConfigDict(title=product_name)

        tt_number: TTNumber

    initial_user_input = yield CreateCommercialPeerForm

    return initial_user_input

create_commercial_peer()

Create a new commercial peer.

Source code in gso/workflows/commercial_peer/create_commercial_peer.py
@create_workflow("Create Commercial Peer", initial_input_form=initial_input_form_generator)
def create_commercial_peer() -> StepList:
    """Create a new commercial peer."""
    # TODO: Implement the steps to create a commercial peer.
    return begin