Gallop workflow engine ccflow-ccbpm form sdk workflow engine load logic processing considerations

cbpm workflow engine sdk form loading logic processing considerations

Keywords: gallop workflow engine interface calls sdk form load  

Note: If you are using sdk form development ccbpm, the form is loaded before you need to call an interface to obtain information of the current node, call this interface also handles some business logic.

Interface name calling: BP.WF.Dev2Interface.SDK_Page_Init (Long WorkId);

Business process and the role of the interface:

     1. The system handles some business, set the current work has been read, and so on.

     2. will judge authority, whether the current personnel can open the current work.

     3. adding some components of the audit data.

     4. WF_Node the FWCSta is a state audit component 0 = disabled, 1 = enabled, 2 = read-only.

Returns the interface call:

The system will return 4-5 data sources:

Data Source Name

Explanation

WF_GenerWorkFlow

Process control of the main engine table

The table can be acquired, the process operation state WFState 2 = 5 = retracted = 3 has been completed.

WF_Node

The current node information:

NodeID node number, Name = node name

SelfParas = customized parameter

RunModel = 0 = normal node, shunt = 1, 2 merged, the merging points = 3, 4 = the same sub-thread form, form sub-thread 5 = isopropyl.

AlertMsg

Message Tip Sheet

Title = title Msg = Message returned information.

Track

审核信息表:返回审核信息的记录表。

ToNodes

到达的节点: 

当前节点可以到达的节点

如果当前节点的方向条件计算规则是让用户选择的,系统就会出现该表。返回给您的是当前节点可以到达那些节点。你可以按照ccbpm的MyFlowGener.htm页面一样在发送按钮下面做一个下拉框,让用户来选择,要发送到那里去。

获取这些信息要处理的业务步骤:

  1. 首先判断返回来的字符串是否是 err@xxxxxxx 就是要判断是否以err@开头,如果是就是系统返回的异常信息,提示并关闭即可。
  2. 获得AlertMsg表里是否有信息,如果有就提示出来 给用户一个确认框。一般是,退回、移交等提示的信息。
  3. 如果有电子签章,签名,就需要检查Track表,输出历史审核信息。判断节点属性WF_Node的WFCSta字段,如果=0标识当前节点禁止查看审核信息, =1可以填写申请信息。=2是只读的审核信息。
  4. 如果当前节点定义一些自定义的节点属性,就可以在WF_Node的SelfParas字段获取。
  5. 如果存在ToNodes如果当前节点的方向条件计算规则是让用户选择的,系统就会出现该表。返回给您的是当前节点可以到达那些节点。你可以按照ccbpm的MyFlowGener.htm页面一样在发送按钮下面做一个下拉框,让用户来选择,要发送到那里去。

==OVER==

Guess you like

Origin www.cnblogs.com/mengjuan/p/11162117.html