Forum Discussion

Shivangi's avatar
Shivangi
New Contributor III
10 months ago
Solved

Task Activity

Hi,

Out of Curiosity, 

Is it possible to update Task Activity.

  • Hi

    You would use this BRApi to control the display of (a) the Task Activity Description and (b) the Percentage Complete value for the progress of a running task that is executed by Data Management through an Extender Business Rule or Data Management Workspace Service (we need to pass in ExtenderArgs).  

    Dim bValue As Boolean = BRApi.TaskActivity.UpdateRunningTaskActivityAndCheckIfCanceled(si, extenderArgs, activityDescription, percentCompleteToAdd)

    Updating the percentCompleteToAdd variable on the Task Activity window will only affect the Display and not make the process run more quickly. For Example, here I am able to control what gets displayed in the Task Progress window using this BRApi e.g.

    Hope this helps

    Thanks

    Sam

     

     

6 Replies

  • MG's avatar
    MG
    Icon for OneStream Employee rankOneStream Employee

    I really wouldn't. What's the requirement?

  • rhankey's avatar
    rhankey
    Contributor III

    I have not personally used this function, but it looks like BRApi.TaskActivity.UpdateRunningTaskActivityAndCheckIfCanceled() will allow you to do so.

    • sameburn's avatar
      sameburn
      Icon for OneStream Employee rankOneStream Employee

      Hi

      You would use this BRApi to control the display of (a) the Task Activity Description and (b) the Percentage Complete value for the progress of a running task that is executed by Data Management through an Extender Business Rule or Data Management Workspace Service (we need to pass in ExtenderArgs).  

      Dim bValue As Boolean = BRApi.TaskActivity.UpdateRunningTaskActivityAndCheckIfCanceled(si, extenderArgs, activityDescription, percentCompleteToAdd)

      Updating the percentCompleteToAdd variable on the Task Activity window will only affect the Display and not make the process run more quickly. For Example, here I am able to control what gets displayed in the Task Progress window using this BRApi e.g.

      Hope this helps

      Thanks

      Sam