Skip to main content
Nintex Community Menu Bar

How to pass a activity like a finish button?

  • September 12, 2007
  • 2 replies
  • 9 views

Forum|alt.badge.img+1

   


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

2 replies

Forum|alt.badge.img+11
  • Nintex Employee
  • September 12, 2007

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


Forum|alt.badge.img+9
  • Nintex Partner
  • September 16, 2007

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.