sartography / spiff-example-cli

GNU Lesser General Public License v3.0
38 stars 10 forks source link

[Question] What should I enter to NOT continue shopping? #12

Closed shazz closed 2 years ago

shazz commented 2 years ago

Hi! The demo is pretty great. Just a silly question, when the current task is "Continue shopping?", what should be entered to go to "End customization"? I tried No, N, 'N' as defined in the BPMN but still going back to "Select Product and Quantity".

Thanks !

shazz commented 2 years ago

Ok works now with N, not sure what happened...

danfunk commented 2 years ago

image Not sure what happened either. The example is pretty strict, if you answer with anything at all that is not just the capital letter "N" if will loop back. So even "N " would fail the expression continue_shopping == 'N' And the other pathway has that little slash on it that means it's the default. We might look at updating the demo to be a little more forgiving.

danfunk commented 2 years ago

@shazz - if you have other questions like these, you can also throw them out in our discourse channel: https://discord.gg/zDEBEnrF

shazz commented 2 years ago

Ah thanks! I'll do that! I'll probably have a lot sooner or later :) Now need to think on how to replace "manual input()" by API call requests!

danfunk commented 2 years ago

While we will be working on Service Tasks soon to directly address external API calls, what we have done up till now is created a custom script engine (which is documented in the ReadTheDocs) - and made additional custom function calls available to script tasks.