原文链接: https://activities.uipath.com/docs/creating-a-custom-activity
Create the Activity Library
Step 1 Open Visual Studio 2010.
- Select File->New ->Project.
- Select Activity Library.
Create a new Activity :
Step 2 : Go to Solution Explorer and right-click.
- Go to Add-> New Item->CodeActivity.
-
Write the below code.
在原来的dll上又套了一层codeActivity;生成了codeActivity的dll之后,使用packageExplorer将dll打成包,导入UiPath中:
打出来的包长这样:
将包导入UiPath:
UiPath通过DLL创建Activity的过程就是这样,它的机制跟AA(Automation Anywhere)不一样;
AA是直接通过MetaBot引用DLL中的方法。