|
PowerFolder 工作流服务器版本0.5 试驾之旅(5)(5) ,而且准备这个工作流的属性被读写。不要在调用selectWorkflowById后调用这个功能。 如果有另外一个被选中的工作流,返回true,否则返回 false Example -例子 while (client.isNextWorkflowPresent()) { client.setAttribute("Status", "Accepted"); } 3.2.2.2 selectWaitingWorkflows选择等候的工作流 Inputs - workflowName (String), state (String)输入--工作流名称,状态 Return – (none)返回-无 Description - select all workflows using script (workflowName) 描述-选择所有使用脚本workflowName的工作流 Example - client.selectWaitingWorkflows("EmployeeSetup", "NewComputerArrived"); 例子--client.selectWaitingWorkflows("EmployeeSetup", "NewComputerArrived"); 3.2.2.3 selectWorkflowById根据ID来选择工作流 Inputs - id (String)输入—id(字符串) Return – (none)返回-无 Description - select the workflow having system ID equal to (id). Don't call 'isNextWorkflowPresent' after calling this function. The (id) specified will almost always be derived from another function. 描述- 选择与id具有相同systemID的工作流。不要在调用这个功能以后调用isNextWorkflowPresen t方法。指定的id应该从其他功能来得到。 Example - client.selectWorkflowById(client.getWebValue("ID")); 例子-client.selectWorkflowById(client.getWebValue("ID")); 3.2.2.4 selectWorkflows选择工作流 Inputs - query (String)输入-查询(字符串) Return – (none)返回-无 Description - select all workflows that match the criteria specified in (query). 描述--选择所有的工作流符合在query中定义的关键词 Example - client.selectWorkflowById("*APP* = 'LocationFormSubmission' AND ?State? = 'NJ'");例子 - client.selectWorkflowById("*APP* = 'LocationFormSubmission' AND ?State? = 'NJ'"); 3.2.3 Getting and Setting Workflow Attributes 得到和设置工作流属性 3.2.3.1 getAttribute得到属性 Inputs - attributeName (String)输入-属性名称(字符串) Return - (String)返回(字符串) Description - get the value of the application-specific attribute. Can't be used on Internal Attributes. 描述-得到应用指定的属性。不能用于内部属性。 Example – client.getAttribute("StreetAddress"); 例子 - client.getAttribute("StreetAddress"); 3.2.3.2 getBooleanAttribute得到布尔属性 Inputs - attributeName (String)输入--属性名称(字符串)
|