Replies: 4 comments 1 reply
-
Another question: A quickbooks customer would be related to the email of the user that had put in the order. Can I also use a side-effect for this, i.e. in the first statement of the workflow, I use a side effect callback to get the user's email and store it locally? |
Beta Was this translation helpful? Give feedback.
-
Have you taken a look at the sample app? I would be glad to add some more examples there. |
Beta Was this translation helpful? Give feedback.
-
I have and I hope I'm not missing anything. It has a single bare-bones example that doesn't even begin to cover any of the features of this package. |
Beta Was this translation helpful? Give feedback.
-
You're right that the sample app only shows the bare minimum. I have also covered some examples via Medium articles https://medium.com/@rlmc (some are reposted on the project's blog but others have not). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, great package.
I'm having trouble getting started because I'm not 100% sure what is correct to write within an activity (as far as idempotency and determinism is concerned).
Would you mind adding some real code examples to the documentation in the form of
Do's & Don'ts & Fix-This-Don'ts
?For example, I am making a workflow for generating a quickbooks entry for a successful payment.
The activities will likely be something like:
Now, if I've understood the documentation correctly, the
execute
method of any of these activities may be run multiple times for the same workflow, i.e. "replayed". So, in the first two activities at least I should always check whether a customer/sales-receipt has already been created for this order/customer.And in the third activity,
SaveReceipt
, I'd do a similar thing where I either keep aworkflow_id
ororder_id
field in the row I insert in the DB to check if I've not already cached the receipt.Is this correct?
Beta Was this translation helpful? Give feedback.
All reactions