检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Start with a letter and can contain only letters, digits, and underscores (_). Do not end with an underscore (_). Logo Create a logo for OneAccess integration authentication.
Figure 31 Selecting the required script Figure 32 Effect Create the script model getTask, which is used to automatically complete the node after a leader approves the application. The node ignores the comments of others and submits the approval result.
%~dp0\ in bold in the following example: @IF EXIST "%~dp0\node.exe" ( "%~dp0\node.exe" "%~dp0\C:\Users\m00361589\AppData\Local\Yarn\Data\link\magno\bin\magno.js" %* ) ELSE ( @SETLOCAL @SET PATHEXT=%PATHEXT:;.JS;=;% node "%~dp0\C:\Users\m00361589\AppData\Local\Yarn\Data\link
Start with a letter and can contain only letters, digits, and underscores (_). It cannot end with an underscore (_). email Create a global context variable. On the flow design page, select the start node and click .
console.log(resp); out.res = resp; } catch (error) { console.error(error.name, error.message); context.setError(error.name, error.message); } return out; } } Click in the upper part of the page to save the script.
@action.object({type:"param"}) export class ActionOutput{ @action.param({type:'String'}) msg:string;//Login information @action.param({type:'String'}) username:string;//Username @action.param({type:'String'}) userId:string;//User ID @action.param
Figure 34 Selecting the target flow Click New, specify Model Name (for example, scriptDemo), select Services for Source, and click Next.
$model.get("Key").getData().value } ] }}).then(function (resp) { context.
Figure 4 Clicking the icon Click New, specify Model Name (for example, datasource), select Custom for Source, and click Next. Figure 5 Adding a model Click Add Node to add a value node, and click Next. Figure 6 Adding a node Click OK.
In addition to the methods defined in models, the platform provides the following standard APIs for all models: Obtaining model data: $model.ref("modelName").getData(); Setting model data: $model.ref("modelName").setData(); Setting model field values: $model.ref("modelName").setValue