Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rabollin opened this issue Oct 30, 2023 · 1 comment · Fixed by #945
Closed

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

rabollin opened this issue Oct 30, 2023 · 1 comment · Fixed by #945
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@rabollin
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
3 participants