Forum Discussion
HRunyon
3 years agoNew Contributor III
Update Task via Connector BR
I have a single Connector BR that makes several independent API calls to external systems. When it's called the Task Progress window sits at 11% with the message "Parsing Source Data". I would like t...
TonyToniTone
OneStream Employee
3 years agoMany of the MarketPlace solutions have examples of how this is used. For example, the PLP Solution Helper under Dashboard Extender Business Rules shows how "extenderArgs" is passed. First part is creating a Public Function where extArgs is defined as ExtenderArgs
Then, this can be passed as an argument to the BRApi.TaskActivity.UpdateRunningTaskActivityAndCheckIfCanceled Function
Hope that helps
HRunyon
3 years agoNew Contributor III
Thank you. My issue is that I cannot simply add a parameter to the Connector entry point. I need to declare the object and set the TaskActivityID correctly. I just cannot find out what the ID is, as it does not appear to be passed at all into the Connector.
Dim extArgs As New ExtenderArgs
extArgs.TaskActivityID = "XXXXX"
- franciscoamores3 years agoContributor II
Hi,, try this
Using dbConnApp As DbConnInfoApp = BRApi.Database.CreateApplicationDbConnInfo(si)
' Get task id
Dim taskId As Guid = EngineWorkflowRunningTask.GetRunningTaskActivityID(dbConnApp, si.WorkflowClusterPk)
' Other actions...
End Using- HRunyon3 years agoNew Contributor III
Hi franciscoamores,
Thank you for this, I'm almost there. I can get the taskID via the your snippet but found out the TaskActivityID property on the ExtendedArgs class is READ-ONLY. I'll keep trying but thank you all for pointing me in the right direction.
- franciscoamores3 years agoContributor II
Anyway I don’t think you can increase the percentage from connector BR as it is automatically updated by onestream after each import sub-step.
you can do from extender BRs that you execute from a DM job
Related Content
- 9 months ago
- 1 year ago