码迷,mamicode.com
首页 > 其他好文 > 详细

[转]UiPath Invoke Code

时间:2019-08-26 21:04:53      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:str   dba   strong   execution   rate   continue   head   amp   tac   

本文转自:https://dotnetbasic.com/2019/08/uipath-invoke-code.html

技术图片

We will learn step by step tutorial for “UiPath Invoke Code”.The Invoke Code activities provide ways to incorporate VB.Net code and custom VB.Net code into UiPath automated workflows. also synchronously invokes VB.NET or C# code, optionally passing it a list of input arguments. The assemblies referenced by your code need to be added into the Imports panel in order to write the code.

Invoke Code activity can also return Out arguments to the caller workflow. It is applicable to LINQ usage.

While UiPath does not allow Anonymous types to be returned using the Assign activity, using the Invoke Code activity allows Anonymous types to be returned and worked with

Properties :

Input

  • Arguments – The parameters that can be passed to the code that is invoked.
  • Code – The VB.net code that is to be invoked.
  • Language – A drop-down menu that specifies what language the invoked code is written in. The available options are VBNet and CSharp.

Common :

  • DisplayName – The display name of the activity.
  • ContinueOnError – Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.

If this activity is included in Try Catch and the value of the ContinueOnError property is True, no error is caught when the project is executed.

Invoke Code Example:

In this example for writing the code in vb.net using uipath. we have to call “invoke code” activities and write the code in vb.net. we can use vb.net code result in the workflow. the output will display in the right side in the output panel in the uipath studio.

技术图片

Conclusion

I hope you liked this article about UiPath Invoke Code in uipath. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.

SHARE THIS

[转]UiPath Invoke Code

标签:str   dba   strong   execution   rate   continue   head   amp   tac   

原文地址:https://www.cnblogs.com/freeliver54/p/11414660.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!