<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Set WorkFlow &amp;quot;Required Approve Percent&amp;quot; in java in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/set-workflow-quot-required-approve-percent-quot-in-java/m-p/20216#M8961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The&amp;nbsp;requiredApprovePercent is under the workflow model and not the BPM so the following should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static final QName PROP_REQUIRED_APPROVE_PERCENT = QName.createQName(&lt;STRONG&gt;NamespaceService.WORKFLOW_MODEL_1_0_URI,&lt;/STRONG&gt; "requiredApprovePercent");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;workflowParameters.put(PROP_REQUIRED_APPROVE_PERCENT, 100);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jamil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 May 2017 08:41:18 GMT</pubDate>
    <dc:creator>jamilnour</dc:creator>
    <dc:date>2017-05-28T08:41:18Z</dc:date>
    <item>
      <title>Set WorkFlow "Required Approve Percent" in java</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-workflow-quot-required-approve-percent-quot-in-java/m-p/20212#M8957</link>
      <description>Hello,Can anybody&amp;nbsp;tell me how to set the "Required Approve Percent" variable in java when programmatically create a Workflow?I can't find it in&amp;nbsp;WorkflowModel. I only found the&amp;nbsp;PROP_PERCENT_COMPLETE which is the percent complete and not the required percent.In &amp;nbsp;link below the writer tells that, param</description>
      <pubDate>Wed, 24 May 2017 11:35:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-workflow-quot-required-approve-percent-quot-in-java/m-p/20212#M8957</guid>
      <dc:creator>jamilnour</dc:creator>
      <dc:date>2017-05-24T11:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set WorkFlow "Required Approve Percent" in java</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-workflow-quot-required-approve-percent-quot-in-java/m-p/20213#M8958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, there is no QName defined for that one.&lt;/P&gt;&lt;P&gt;What you can do is create it by yourself in your code, with something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #a71d5d; background-color: #ffffff;"&gt;static&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d; background-color: #ffffff;"&gt;final&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #ffffff;"&gt;QName&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #0086b3; background-color: #ffffff;"&gt;PROP_REQUIRED_APPROVE_PERCENT&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #ffffff;"&gt;QName&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d; background-color: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;createQName(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #ffffff;"&gt;NamespaceService&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0086b3; background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;.&lt;/SPAN&gt;BPM_MODEL_1_0_URI&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #183691; background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #183691;"&gt;"requiredApprovePercent&lt;/SPAN&gt;&lt;SPAN class="" style="color: #183691;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then, in your code, use it, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;parameters.put(&lt;SPAN style="color: #0086b3;"&gt;PROP_REQUIRED_APPROVE_PERCENT&lt;/SPAN&gt;, 50);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 14:24:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-workflow-quot-required-approve-percent-quot-in-java/m-p/20213#M8958</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-05-24T14:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set WorkFlow "Required Approve Percent" in java</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-workflow-quot-required-approve-percent-quot-in-java/m-p/20214#M8959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately it is not working and I am having always 50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code for requiredApprovedPercent:&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 9.0pt;"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;static final &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;QName &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;PROP_REQUIRED_APPROVE_PERCENT &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;= QName.&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;createQName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(NamespaceService.&lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;BPM_MODEL_1_0_URI&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, "requiredApprovePercent"&lt;BR /&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;PRE style="font-size: 9.0pt;"&gt;String requiredApprovePercent = (String) ruleAction.getParameterValue(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;PARAM_REQUIRED_APPROVE_PERCENT&lt;/SPAN&gt;);&lt;BR /&gt;&lt;PRE style="background-color: #ffffff; font-size: 9.0pt;"&gt;System.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;out&lt;/SPAN&gt;.println(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"requiredApprovePercent:" &lt;/SPAN&gt;+ requiredApprovePercent);&lt;/PRE&gt;&lt;PRE style="background-color: #ffffff; font-size: 9.0pt;"&gt;System.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;out&lt;/SPAN&gt;.println(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"requiredApprovePercent Int:" &lt;/SPAN&gt;+ Integer.&lt;SPAN&gt;parseInt&lt;/SPAN&gt;(requiredApprovePercent));&lt;BR /&gt;&lt;PRE style="font-size: 9.0pt;"&gt;System.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;out&lt;/SPAN&gt;.println(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"PROP_REQUIRED_APPROVE_PERCENT" &lt;/SPAN&gt;+ &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;PROP_REQUIRED_APPROVE_PERCENT&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;PRE style="font-size: 9.0pt;"&gt;workflowParameters.put(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;PROP_REQUIRED_APPROVE_PERCENT&lt;/SPAN&gt;, Integer.&lt;SPAN&gt;parseInt&lt;/SPAN&gt;(requiredApprovePercent));&lt;BR /&gt;...&lt;/PRE&gt;Log:&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;requiredApprovePercent:100&lt;BR /&gt;requiredApprovePercent Int:100&lt;BR /&gt;&lt;SPAN&gt;PROP_REQUIRED_APPROVE_PERCENT{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/bpm/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/bpm/1.0&lt;/A&gt;&lt;SPAN&gt;}requiredApprovePercent&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Jamil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 11:43:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-workflow-quot-required-approve-percent-quot-in-java/m-p/20214#M8959</guid>
      <dc:creator>jamilnour</dc:creator>
      <dc:date>2017-05-25T11:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set WorkFlow "Required Approve Percent" in java</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-workflow-quot-required-approve-percent-quot-in-java/m-p/20215#M8960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you checking that information?&lt;/P&gt;&lt;P&gt;Where do you see the 50 value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried starting the workflow using javascript and setting the property?&lt;/P&gt;&lt;P&gt;When you start the workflow by using the Share form are you able to set the property's value the way you need it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 20:00:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-workflow-quot-required-approve-percent-quot-in-java/m-p/20215#M8960</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-05-25T20:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set WorkFlow "Required Approve Percent" in java</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-workflow-quot-required-approve-percent-quot-in-java/m-p/20216#M8961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The&amp;nbsp;requiredApprovePercent is under the workflow model and not the BPM so the following should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static final QName PROP_REQUIRED_APPROVE_PERCENT = QName.createQName(&lt;STRONG&gt;NamespaceService.WORKFLOW_MODEL_1_0_URI,&lt;/STRONG&gt; "requiredApprovePercent");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;workflowParameters.put(PROP_REQUIRED_APPROVE_PERCENT, 100);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jamil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2017 08:41:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-workflow-quot-required-approve-percent-quot-in-java/m-p/20216#M8961</guid>
      <dc:creator>jamilnour</dc:creator>
      <dc:date>2017-05-28T08:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set WorkFlow "Required Approve Percent" in java</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-workflow-quot-required-approve-percent-quot-in-java/m-p/20217#M8962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good catch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 04:35:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-workflow-quot-required-approve-percent-quot-in-java/m-p/20217#M8962</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-05-30T04:35:09Z</dc:date>
    </item>
  </channel>
</rss>

