Skip to content

Cannot schedule a workflow at a specific date/time #943

@rabollin

Description

@rabollin

In the existing implementation I cannot see the ability to pass date/ time to schedule the workflow/ activity run as per the below code at : https://github.com/dapr/java-sdk/blob/master/sdk-workflows/src/main/java/io/dapr/workflows/client/DaprWorkflowClient.java

public String scheduleNewWorkflow(Class clazz) {
return this.innerClient.scheduleNewOrchestrationInstance(clazz.getCanonicalName());
}

/**

  • Schedules a new workflow using DurableTask client.
  • @param any Workflow type
  • @param clazz Class extending Workflow to start an instance of.
  • @param input the input to pass to the scheduled orchestration instance. Must be serializable.
  • @return the randomly-generated instance ID for new Workflow instance.
    */
    public String scheduleNewWorkflow(Class clazz, Object input) {
    return this.innerClient.scheduleNewOrchestrationInstance(clazz.getCanonicalName(), input);
    }

/**

  • Schedules a new workflow using DurableTask client.
  • @param any Workflow type
  • @param clazz Class extending Workflow to start an instance of.
  • @param input the input to pass to the scheduled orchestration instance. Must be serializable.
  • @param instanceId the unique ID of the orchestration instance to schedule
  • @return the instanceId parameter value.
    */
    public String scheduleNewWorkflow(Class clazz, Object input, String instanceId) {
    return this.innerClient.scheduleNewOrchestrationInstance(clazz.getCanonicalName(), input, instanceId);
    }

However I can schedule it either with Python/ dotnet; Refer to dotnet SDK here: https://github.com/dapr/dotnet-sdk/blob/master/src/Dapr.Workflow/DaprWorkflowClient.cs

@skyao - FYA.

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions