Category Archives: API Workflow and page state

Trigger workflow actions

After you know how to get pages from a specific workflow state you get here the information what you can do with them. String logonGuid=”0904ABF0E43443D2881FE7481339650E”; String sessionKey=”490EC675042F4C5A8A6DF1ED63ADD7A6″; String projectGuid=”268F46EF5EB74A75824856D3DA1C6597″; CmsClient client = new CmsClient(logonGuid); Project project = client.getProject(sessionKey, projectGuid); Page currentPg = project.getPageById(“34009″); currentPg.submitToWorkflow(); currentPg.reject(“note name”, “reject comment”); currentPg.release(); The first method submitToWorkflow()  can be [...]

Get pages residing in a workflow state

Some time ago we used in one of our projects a workflow setup with an addional release check for created pages. The amount of pages currently at any state was quite high, so I added some functions to access pages currently in workflow. RedDot CMS offer a two ways approach accessing pages in workflow: global [...]

Determine the page state within workflow

Before you need to update a page from a program I usually check the page state. Means, is the page in draft I cannot change anything on it. Therefore the following check methods are available: String logonGuid=”0904ABF0E43443D2881FE7481339650E”; String sessionKey=”490EC675042F4C5A8A6DF1ED63ADD7A6″; String projectGuid=”268F46EF5EB74A75824856D3DA1C6597″; CmsClient client = new CmsClient(logonGuid); Project project = client.getProject(sessionKey, projectGuid); Page currentPg = project.getPageById(“34009″); [...]

Follow

Get every new post delivered to your Inbox.