Hi,
We have a function to upload files to the ProjectWise data source and then sets attribute values based on another DMS.There is no problem uploading the first version of a file, updating with a new file and raising the version value also works well as long as there is no Workflow / Rules Engine that controls the flow.
But when the Rules Engine is used to control the flow we are unable to bump version etc. We would like to be able to adhere to the rules and trigger a Rule to do its thing via the API. We have looked in the documentation but unable to find out how this is done.
We do know how to get the current Workflow and Current State of the document but is there any additional information we need to find out?
As a workaround:
In data sources with Rules Engine, we checkout the file, then copy the newer file to the ProjectWise working directory and then check in to succeed to update file version.
aaApi_CheckOutDocumentaaApi_CheckInDocuments
This is fine, but we want to increase the version of the document at the same time.
So we've tried moving the file to a new version using ...
aaApi_SetDocumentStateandaaApi_ChangeDocumentToNextState
but then we receive an error message from ProjectWise...
“Manual version creation not allowed. Please use Workflow customization rules to create new document version.”
Anyone who knows if using the API can handle workflows to create a new version of a document?
In the ProjectWise interface, the Change State menu appears as shown in picture
Any help would be greatly appreciated!
/Per
Have you tried to do this in PowerShell? New-PWLogin does not load WRE by default and if you want it, you use the -LoadWRE switch. We've investigated temporarily unsetting those hooks, but have not had much luck.
Hi Dave
Thanks for your reply.
With WRE in place, you will be constrained in what you can do. There's no API for WRE AFAIK. You could raise a change request.
ProjectWise CONNECT Edition - Rules Engine Guide V1.0.pdf
If looking at this issue, big progress has been made upon new versions of ProjectWISE.
You can enable "Manual Creation" inside workflows by setting what follows on the "Settings" tab from the Worflow Rules Engine:
MANUAL_VERSION_WORKFLOWS = ALL