Skip to main content

   


In my code how to setup my  worklistitem?      I want system to jump this activity (auto approve)    


 For Each wlim In wlai
                     If wlim.ProcessInstance.Name = "test" Then
                        If wlim.ProcessInstance.Folio = "XXXX" Then
                            With wlim.ProcessInstance
                                      wlim.ActivityInstanceDestination.DataFields("P1ActionTest").Value = "Approve"
                            End With
                        End If
                    End If


next

Hi louisSCC,


I'm not exactly sure what you are trying to achieve.  In the code you supplied, the 'With ...' and 'End With' lines are not necessary.  You'll need to call the WorklistItem's Update and Finish methods to complete the worklist item.


HTH,


Ockert


My typical answer is usually:



  • Auto-approved client event = A server event that sets some value

Maybe if you gave us a bit of background, we could give a bit more feedback.


Reply