<?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: Can you use a checklist in a Windchill Workflow task in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/749351#M3713</link>
    <description>&lt;P&gt;Are you talking about an honor system check meaning just check a box with no verification that the user actually did what they're suppose to do? Kind of like the "By Checking this box you agree that you have read and understand this agreement".&lt;/P&gt;
&lt;P&gt;Or something that actually means something like running code that checks/verifies the user did what is required before proceeding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both are can be included.&amp;nbsp; My rule of thumb is if it is possible you write code and verify.&amp;nbsp; If it is not possible to write code to verify but you want to add a checkbox as nothing more than a reminder to the user then you do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't even ask if the customer wants verification anymore (they ALL do).&amp;nbsp; I just get their specs and set it up. SOP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Tue, 21 Sep 2021 16:56:56 GMT</pubDate>
    <dc:creator>d_graham</dc:creator>
    <dc:date>2021-09-21T16:56:56Z</dc:date>
    <item>
      <title>Can you use a checklist in a Windchill Workflow task</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/749223#M3710</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone used checklists as part of a Windchill Workflow task?&amp;nbsp; We want to use a checklist in the assigned activity to verify that the assignee has done everything they need to before the task moves on.&amp;nbsp; This seems like something that would be useful to many organizations, but I can't find anything for it.&amp;nbsp; I'm hoping someone out there has done this and can tell me where to start.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-ddmartin3-&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 14:15:24 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/749223#M3710</guid>
      <dc:creator>ddmartin3</dc:creator>
      <dc:date>2024-03-15T14:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a checklist in a Windchill Workflow task</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/749239#M3711</link>
      <description>&lt;P&gt;That would be indeed very interesting! Unfortunately I think the workflow UI is very stiff and not customizable.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 05:58:06 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/749239#M3711</guid>
      <dc:creator>BjoernRueegg</dc:creator>
      <dc:date>2021-09-21T05:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a checklist in a Windchill Workflow task</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/749326#M3712</link>
      <description>&lt;P&gt;Hi ddmartin3,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried to add boolean variables to the workflows task? If you mark them as visible, the workflow task should show them in the UI.&lt;/P&gt;
&lt;P&gt;You can initialize them to false, and add a Java code in the complete transition of the task to check if all of them have been changed to true to throw an WTException with a custom message for the user if not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 13:01:42 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/749326#M3712</guid>
      <dc:creator>imendiola</dc:creator>
      <dc:date>2021-09-21T13:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a checklist in a Windchill Workflow task</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/749351#M3713</link>
      <description>&lt;P&gt;Are you talking about an honor system check meaning just check a box with no verification that the user actually did what they're suppose to do? Kind of like the "By Checking this box you agree that you have read and understand this agreement".&lt;/P&gt;
&lt;P&gt;Or something that actually means something like running code that checks/verifies the user did what is required before proceeding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both are can be included.&amp;nbsp; My rule of thumb is if it is possible you write code and verify.&amp;nbsp; If it is not possible to write code to verify but you want to add a checkbox as nothing more than a reminder to the user then you do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't even ask if the customer wants verification anymore (they ALL do).&amp;nbsp; I just get their specs and set it up. SOP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 16:56:56 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/749351#M3713</guid>
      <dc:creator>d_graham</dc:creator>
      <dc:date>2021-09-21T16:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a checklist in a Windchill Workflow task</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/749356#M3714</link>
      <description>&lt;P&gt;Basically just the&amp;nbsp;&lt;SPAN&gt;"By Checking this box you agree that you have read and understand this agreement" kind of check box.&amp;nbsp; There is too much variability in the number of uploaded documents per job to say verify they were all uploaded programmatically.&amp;nbsp; But we would prefer if we didn't have rework because someone forgot to sign or check the date on the form they're reusing.&amp;nbsp; We end up losing a lot of back and forth time for silly reasons, and maybe if a little more time was taken upfront we could save a lot of time overall and trust the system.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-Dee-&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 15:19:23 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/749356#M3714</guid>
      <dc:creator>ddmartin3</dc:creator>
      <dc:date>2021-09-21T15:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a checklist in a Windchill Workflow task</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/749357#M3715</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp; This sounds like exactly what I need.&amp;nbsp; I'll try it and report back with my findings.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Dee-&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 15:21:26 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/749357#M3715</guid>
      <dc:creator>ddmartin3</dc:creator>
      <dc:date>2021-09-21T15:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a checklist in a Windchill Workflow task</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/749386#M3716</link>
      <description>&lt;P&gt;I added this acknowledge check box and a bit of javascript. Does not let complete task button to be checked unless they check the box.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="avillanueva_0-1632247462798.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/46403iF7711C5C37A7EF1B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="avillanueva_0-1632247462798.png" alt="avillanueva_0-1632247462798.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 18:05:27 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/749386#M3716</guid>
      <dc:creator>avillanueva</dc:creator>
      <dc:date>2021-09-21T18:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a checklist in a Windchill Workflow task</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/752813#M3717</link>
      <description>&lt;P&gt;Oh?&amp;nbsp; Using Javascript is an interesting decision.&amp;nbsp; Also, how did you do that?&amp;nbsp; There are places in tasks that accept Java. Where does one add Javascript?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 20:07:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/752813#M3717</guid>
      <dc:creator>ddmartin3</dc:creator>
      <dc:date>2021-10-12T20:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a checklist in a Windchill Workflow task</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/752823#M3718</link>
      <description>&lt;P&gt;This is exactly what I wanted.&amp;nbsp; For any other newbies reading, the code to make it work is pretty minimal too.&lt;/P&gt;
&lt;P&gt;This is my actual working code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if (excelReviewedBool == false || natDataBool == false)&lt;BR /&gt;result = false; &lt;BR /&gt;else&lt;BR /&gt;result = true;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 22:27:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/752823#M3718</guid>
      <dc:creator>ddmartin3</dc:creator>
      <dc:date>2021-10-12T22:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a checklist in a Windchill Workflow task</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/753530#M3719</link>
      <description>&lt;P&gt;It required using a custom JSP task template. That is where you can put the JavaScript. The next piece was to override the complete button jsp since that is what generates the complete button. Below is from my initial task template:&lt;/P&gt;
&lt;P&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td valign="middle" align="left"&amp;gt;&lt;BR /&gt;&amp;lt;FONT class=wizardbuttonfont&amp;gt;&amp;lt;jsp:include page="/netmarkets/jsp/customtemplates/ccbReviewCompleteButton.jsp"/&amp;gt;&lt;BR /&gt;&amp;lt;/FONT&amp;gt;&lt;BR /&gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;/P&gt;
&lt;P&gt;There is a bit of JSP in the JSP called out above to refer to the javascript function:&lt;/P&gt;
&lt;P&gt;if(isShow.equals(Boolean.TRUE))&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;am = NmActionServiceHelper.service.getActionModel("complete Custom workitem",myNmWorkItem); &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;NmAction completeTask = (NmAction)am.getActions().get(0);&lt;/P&gt;
&lt;P&gt;completeTask.setButton(true);&lt;/P&gt;
&lt;P&gt;completeTask.setTitle("Complete");&lt;/P&gt;
&lt;P&gt;completeTask.setDesc("Complete");&lt;/P&gt;
&lt;P&gt;//completeTask.setEnabled(true);&lt;/P&gt;
&lt;P&gt;completeTask.setEnabled((!myNmWorkItem.isCompleted() &amp;amp;&amp;amp; !myNmWorkItem.isSuspended() &amp;amp;&amp;amp; myNmWorkItem.isMine()));&lt;/P&gt;
&lt;P&gt;//addition - Parent JSP page must contain this validtion script&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;completeTask.setOnClick("validate_Complete()"); &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;actionBean.setAction(completeTask);&lt;/P&gt;
&lt;P&gt;NmContext context = nmcontext.getContext();&lt;/P&gt;
&lt;P&gt;context.pushElement(myNmWorkItem);&lt;/P&gt;
&lt;P&gt;NmAction.actionjsp( actionBean, linkBean, objectBean, localeBean, urlFactoryBean,nmcontext, sessionBean, out, request, response);&lt;/P&gt;
&lt;P&gt;context.popElement(); actionBean.setAction(null);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also had a custom action command inserted for other things.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 11:57:36 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Can-you-use-a-checklist-in-a-Windchill-Workflow-task/m-p/753530#M3719</guid>
      <dc:creator>avillanueva</dc:creator>
      <dc:date>2021-10-18T11:57:36Z</dc:date>
    </item>
  </channel>
</rss>

