New here, Apologies if its repetitive, but I couldn’t find relevant.
Requirement is simple:
Want to trigger a schedule from cli temporal schedule trigger -s schedule/withid/1
with some more additional flag like mode = “realtime” or mode = “historical”
And have workflow definition like
func scheduleIDOneWorkflow(ctx workflow.Context) error {
// What I want to do is take some action based on that input
// ex - mode = historical
//. run childWorkflowHistorical
// mode = realtime
//. run childWorkflowRealtime.
}
I am not able to figure out a way to achive the same. My strict requirement is I want to set flag with schedule trigger not workflow execute. Any help/pointers/docs will be great help.
I can provide more detail if required.