tag:help-archives.hannonhill.com,2010-02-09:/discussions/web-services/1588-web-servicesCascade CMS: Discussion 2016-02-25T19:27:35Ztag:help-archives.hannonhill.com,2010-02-09:Comment/391492002016-02-12T13:19:54Z2016-02-12T13:19:54Zweb services<div><p>Hi Ahmed,</p>
<blockquote>
<p>Using readWorkFlowInformation results in boolean response and
nothing else.</p>
</blockquote>
<p>Make sure you are using the asset's current version ID and not
the working copy or draft ID.</p>
<blockquote>
<p>Get workflow current step (in our case: pending changes,
awaiting review, content review, technical review).</p>
</blockquote>
<p>The current step of an asset's workflow can be obtained using
the <code>readWorkFlowInformation</code> information operation. As
I mentioned above, the current version of an asset needs to be
used, not the working copy or draft.</p>
<blockquote>
<p>Get workflows separated by site: CAS, Business, Engineering,
Law, etc… Get workflows’ users & comments.</p>
</blockquote>
<p>Let me check with the developers to see if these items are
possible, but off-hand I do not think they are. I will be in touch
as soon as I have additional information for you.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/391492002016-02-12T21:18:59Z2016-02-12T21:19:01Zweb services<div><p>Hi Ryan, I'm working with Ahmed in this project too. I was able
to get the workflow information by using the asset's current ID but
I have a question.</p>
<p>First of all, let me give you a briefly explanation of the
project. We want to create a public site to display all the current
workflows, so people can see in which step of the workflow process
their submitted content is.</p>
<p>We currently use the RSS feed to list all the workflows, and
we're able to get the workflow ID. My question is; using the API,
is there anyway we can use the workflow ID and get the review
content property of it, and then the actual content's current ID
and type, so I cant pass that information to
readWorkflowInformation?</p></div>Carlostag:help-archives.hannonhill.com,2010-02-09:Comment/391492002016-02-16T14:14:57Z2016-02-16T14:14:57Zweb services<div><p>Hi Ahmed and Carlos,</p>
<p>My apologies for the delayed response.</p>
<p>After checking with the developers, I was able to confirm it is
not possible to obtain all workflows for a given Site, only for
individual assets. The solution would be to basically loop over
each asset in a site and execute
<code>readWorkflowInformation</code> operation on it.</p>
<blockquote>
<p>We currently use the RSS feed to list all the workflows, and
we're able to get the workflow ID. My question is; using the API,
is there anyway we can use the workflow ID and get the review
content property of it, and then the actual content's current ID
and type, so I cant pass that information to
readWorkflowInformation?</p>
</blockquote>
<p>It is not currently possible to obtain workflow information
using the Cascade API; however, Index Blocks can render workflow
information and the related entity's ID. A possible solution could
be to create an Index Block, or blocks, for each Site and publish
this information out in either HTML or XML form so you can build
out your report.</p>
<p>Making this information available to the Locator Tool definitely
sounds like a good idea since we try to ensure both Index Blocks
and the Locator Tool return as much of the same information as
possible. I highly recommend posting a suggestion on our <a href="http://ideas.hannonhill.com/">Idea Exchange</a> if you would like
to see this functionality considered for a future release.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/391492002016-02-19T00:11:26Z2016-02-19T00:11:27Zweb services<div><p>Thank you for response Ryan, is there anyway to set those blocks
to public, so there is no need to enter an authentication?</p></div>Carlostag:help-archives.hannonhill.com,2010-02-09:Comment/391492002016-02-19T14:17:38Z2016-02-19T14:17:38Zweb services<div><p>Hi Carlos,</p>
<p>My apologies for the confusion. What I meant was that you would
create a Folder Index Block that indexes all content within the
given Site and you would essentially publish that Index Block out
to your web server as an XML file (or JSON depending on what you
wish to do with it).</p>
<p>Once the XML file has been published, you can process it however
you need. For example, you could loop over that XML file and run
the <code>readWorkflowInformation</code> operation using the
workflow ID contained within the XML.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/391492002016-02-19T20:56:48Z2016-02-19T20:56:49Zweb services<div><p>Thank you Ryan, it's working now.</p>
<p>Best regards!<br>
- Carlos</p></div>Carlostag:help-archives.hannonhill.com,2010-02-09:Comment/391492002016-02-19T21:27:44Z2016-02-19T21:27:44Zweb services<div><p>Not a problem at all, Carlos, thank you for following up. I am
glad to hear you were able to come up with a workaround.</p>
<p>I'm going to go ahead and close this discussion, please feel
free to comment or reply to re-open if you have any additional
questions.</p>
<p>Have a great day!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/391492002016-02-24T23:21:21Z2016-02-24T23:21:22Zweb services<div><p>Hi Ryan, thanks again for your help. I do have another
question.</p>
<p>I notice that the xml file that comes from the index block it's
not up to date, maybe because it's cached? What can we do in order
to get the latest xml every time we call the xml's URL?</p>
<p>Best regards,<br>
- Carlos</p></div>Carlostag:help-archives.hannonhill.com,2010-02-09:Comment/391492002016-02-25T13:18:27Z2016-02-25T13:18:27Zweb services<div><p>Hi Carlos,</p>
<p>To confirm, you went the route of publishing the XML out? If so,
the easiest thing you can do is create a Publish Set that publishes
on a schedule and only publishes that single page.</p>
<p>For example, you could configure the Publish Set publish the
page every day at 5:00AM, or every X hours, to ensure the XML file
is updated at the frequency you need.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/391492002016-02-25T13:59:17Z2016-02-25T13:59:17Zweb services<div><p>Hi Carlos,</p>
<p>Here I provided an example of reading and publishing the
contents of an index block at the same time when a URL is
accessed.</p>
<p><a href="https://github.com/wingmingchan/php-cascade-ws-ns-examples/blob/master/xml_feed/index_block_xml.php">
https://github.com/wingmingchan/php-cascade-ws-ns-examples/blob/mas...</a></p>
<p>Wing</p></div>Wing Ming Chantag:help-archives.hannonhill.com,2010-02-09:Comment/391492002016-02-25T17:34:32Z2016-02-25T17:34:35Zweb services<div><p>Thank you Ryan, I'll try that.</p>
<p>Thank you for your response Mr. Wing very useful library you've
created.</p></div>Carlostag:help-archives.hannonhill.com,2010-02-09:Comment/391492002016-02-25T19:27:33Z2016-02-25T19:27:33Zweb services<div><p>Not a problem at all, Carlos.</p>
<p>I'm going to go ahead and close this discussion, but please feel
free to comment or reply to re-open if you have any additional
questions or issues.</p>
<p>Have a great day!</p></div>Ryan Griffith