I like the fact that you guys are providing a little more desktop interaction with UiPath. UiPath is turning out to be a general-purpose programming environment
as well as RPA.
Yeah, you’re right; I am using 1.10 of the forms package here which is “preview”. Consider me, then, a beta tester!
Here’s a description of the problem with
Create Form. A simple project is attached.
One problem is that the activity requires that there be a sequence inside it. When you pull the code for that activity it creates the instance with a sequence
If you delete the sequence and try to run the project you get the error below. The base
Create Form class shouldn’t gripe at a null pointer here unless it requires some kind of functionality from the embedded sequence. If it
does require the component then the IDE should pop an error when you try to remove it, not throw an exception at runtime. That aside, using it with just a blank sequence in it is OK.
However, if you decide to populate the embedded sequence with
any activity, the thing gets stuck in a loop. You can’t leave the form except to cancel it. When you do that, you get this error:
Exiting the form this way does exit the sequence but, of course, nothing in the form get’s presented to the running code.
I can see a reason for being in a loop … you might have an application that presents the form repeatedly to input multiple like values and add them to a database
or something. That’s fine. However, without some ability to exit the loop gracefully it’s not very useful, or at least confusing. My suggestion would be to add a property to the button class in your forms that will cause termination of the loop. Then someone
could add an ‘Exit’ or ‘Done’ button to the form with the appropriate property checked. Upon pressing said button the form will silently exit the loop and continue the workflow.
Forms Tinkering.zip (21 KB)