Replies: 1 comment 2 replies
-
|
Maybe implementing parameters in venture/src/ClosureWorkflowStep.php Line 32 in 40a5bb1 propose : app()->call($this->callback->getClosure(), ['workflow' => $this->workflow(), 'step' => $this->step()]);with this it's possibile to use $this->define('My Workflow')
->addJob(function (TruthGenerator $truths, WorkflowJob $step,Workflow $workflow) {
Log::info('workflow id: '. $workflow->id);
Log::info('step name: '. $step->name);
Log::info($truths->getHotTake());
}, id: 'log-truth');Sorry for my basic implementation, tell me if need PR or suggestion |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, thanks for this awesome package.
I've a question.
How can retrive getStepId() in a closure added in workflow?
For a simply Job it's possibile using getStepId from trait
WorkflowStepBut when i use this how can access?
Beta Was this translation helpful? Give feedback.
All reactions