-
Notifications
You must be signed in to change notification settings - Fork 46
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
Workflow-init support #480
Comments
see the parent feature issue for how other languages have handled it: temporalio/features#400 |
I'm developing the concept of Workflow Init in the constructor: the user can call the public function __construct() {
$input = Workflow::getInput()->getValues();
// ... init code
} However, Manually specifying the type for required arguments like My proposal is to add a new method |
@roxblnfk That works for me. If it's possible to allow them to specify the args in their constructor, and pass them in there I would say let's do that (possibly in addition to |
+1 to @Sushisource's comment, if it's doable. It seems somewhat more discoverable and idiomatic. |
We should have a method that's guaranteed to initialize before signals and updates come in so handlers can use initialized values.
The text was updated successfully, but these errors were encountered: