This project is read-only.

4. HR Department Partition: Get the specific department by the organization service.

VB .NET 

  1.         Public Class DeptRule
  2.             Implements IRule
  3.             Public Function Execute(ByVal variable As System.Collections.Generic.Dictionary(Of String, Object)) As String Implements HSDc.RingleFlow.Api.Rule.IRule.Execute
  4.                 Dim orgId As String = Nothing
  5.                 If (Not variable.TryGetValue("OrgID", orgId)) Then
  6.                     orgId = "0"
  7.                 End If
  8.                 Dim engine As IWorkflowEngine = WorkflowEngineFactory.GetInstance()
  9.                 Dim dept As IDept = engine.OrgaisationService.GetDepartment(CType(orgId, Integer))
  10.                Dim assignee As String = dept.OrgId
  11.                Return assignee
  12.            End Function
  13.        End Class

Last edited Jun 25, 2012 at 11:04 AM by cathysung, version 2

Comments

No comments yet.