Skip to content

SpringBoot - create ScheduleClient per namespace that has namespace pre-configured in its ScheduleClientOptions #2449

@tsurdilo

Description

@tsurdilo

Currently have to inject specific WorkflowClient and then create ScheduleClient for its namespace:

 scheduleClient customClient = ScheduleClient.newInstance(workflowClient.getWorkflowServiceStubs(), ScheduleClientOptions.newBuilder()
                    .setNamespace(workflowClient.getOptions().getNamespace())

Ask is to configure this based on configured namespace (or namespaces if possible)
so can just do similar to WorkflowClient:

@Resource(name = "assignScheduleClient")
private ScheduleClient assignScheduleClient;

@Resource(name = "unassignScheduleClient")
private ScheduleClient unassignScheduleClient;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions