I am trying to find a way to retrieve any business process info that I can using workflow. I have checked under all additional properties that you can retrieve from an entry, and under all conditional options. I can't seem to find anything related to business process data.
Question
Question
Replies
Good catch!
An idea might be to directly query the Workflow database. There are some in-box views that might have what you need.
I don't know if this would contain any repository information. The entries I want to review are stored in the repository, but the workflow database holds workflow definitions and recent activity only I believe.
It'll likely be a multi-step process. You can start at the bp_instances table, and hop over to bp_data by joining on bpi_id. From there you'll get a number of rows, each of which has a different bpd_type. One of those will be $ENTRY, and the bpd_int_data field of that row will be the entry id.
You can then do a cross database query to get to the entry in the repository.
Got it, I guess my concern was that workflow does not keep a history of business processes run on entries for very long. A few months with the default settings.
Good point. It would be nice to split that out and have the option of making certain business process logs permanent.
You want to look at the BusinessProcessEntity class in the SDK. Anything you tracked as part of your business process (and appears in the Business Processes pane in the desktop/web client) is saved to the repository and not subject to Workflow's cleanup rules.