<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Change status life cycle</title><link>https://www.aras.com/community/f/development/3875/change-status-life-cycle</link><description>Hi

I created simple life cycle and it looks like this

created --&amp;gt; in progress --&amp;gt; completed

how can i change the status from created to in progress ?

best regards</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Change status life cycle</title><link>https://www.aras.com/community/thread/1948?ContentTypeID=1</link><pubDate>Wed, 15 Aug 2018 11:19:28 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:af9d7b9c-71a7-474d-9d2b-3bcba81bc754</guid><dc:creator>Eli Donahue</dc:creator><description>Hi ahmed,

When you change a Workflow Map, it does not affect any existing items. If you create a new item and vote it through the workflow activities, does the lifecycle state change as you expect?

Eli

&lt;hr /&gt;

Eli Donahue

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change status life cycle</title><link>https://www.aras.com/community/thread/1947?ContentTypeID=1</link><pubDate>Fri, 10 Aug 2018 05:47:16 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:7c0821db-b486-4637-98f6-4819f980e67f</guid><dc:creator>Former Member</dc:creator><description>thank you for the answer

I did it, but the current status is not changed

how can i know if the state changed or not ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change status life cycle</title><link>https://www.aras.com/community/thread/1946?ContentTypeID=1</link><pubDate>Thu, 09 Aug 2018 10:36:01 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:f9aa2be0-b6bd-429e-9910-340d7c089817</guid><dc:creator>Christopher Gillis</dc:creator><description>Hi ahmed,

You can do this by modifying the Workflow Map. When you select a workflow activity in the map, you can configure the promotion you want to occur under the &lt;strong&gt;Promotions&lt;/strong&gt; tab. In order to promote your item to the &amp;quot;in progress&amp;quot; state, you&amp;#39;ll want to add a new promotion event and configure the columns as shown below.
&lt;ul&gt;
 	&lt;li&gt;Event - You&amp;#39;ll likely want to choose &amp;#39;On Activate&amp;#39; which will occur when the workflow gets to your chosen activity&lt;/li&gt;
 	&lt;li&gt;ItemType - The ItemType you have attached your life cycle to&lt;/li&gt;
 	&lt;li&gt;Life Cycle - The Life Cycle Map you have created&lt;/li&gt;
 	&lt;li&gt;From State - The &lt;strong&gt;Created&lt;/strong&gt; state of your Life Cycle&lt;/li&gt;
 	&lt;li&gt;To State - The &lt;strong&gt;In Progress&lt;/strong&gt; state of your Life Cycle&lt;/li&gt;
 	&lt;li&gt;Role - The Identity that will be performing this promotion (Aras PLM is the standard Role for these kinds of automatic promotions)&lt;/li&gt;
&lt;/ul&gt;
Chris

&lt;hr /&gt;

Christopher Gillis

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change status life cycle</title><link>https://www.aras.com/community/thread/1945?ContentTypeID=1</link><pubDate>Thu, 09 Aug 2018 07:38:35 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:93e67d11-7631-4107-9206-319601bfbfbb</guid><dc:creator>Former Member</dc:creator><description>how can i change the state to &amp;#39;&amp;#39;  in progress &amp;#39;&amp;#39; using workflow ??&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change status life cycle</title><link>https://www.aras.com/community/thread/1944?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 09:59:18 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:a8ac86bb-5823-4545-9930-b55247cc66c6</guid><dc:creator>Former Member</dc:creator><description>hi

but how can i know if the state is changed or not

&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change status life cycle</title><link>https://www.aras.com/community/thread/1943?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 09:35:41 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:bc303c57-0349-4d5a-b31b-cf759a1de9dc</guid><dc:creator>chernandez1288</dc:creator><description>Hi Eli,

I&amp;#39;m having issues with Aras can you assist me?

thank you,

Carlos&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change status life cycle</title><link>https://www.aras.com/community/thread/1942?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 09:33:36 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:4521dc63-d990-488a-bacf-a484374cbda5</guid><dc:creator>Eli Donahue</dc:creator><description>Hi Ahmed,

Since the method doesn&amp;#39;t update the context item, you&amp;#39;ll need to update it with your code. For example:
&lt;pre&gt;partItem= partItem.promote(&amp;quot;in Bearbeitung&amp;quot;,&amp;quot;Promoted&amp;quot;);&lt;/pre&gt;
Note that this is replacing partItem with the result received from the server, so any previous changes to that item that were not applied to the server may be overwritten in memory.

Eli

&lt;hr /&gt;

Eli Donahue

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change status life cycle</title><link>https://www.aras.com/community/thread/1941?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 09:23:55 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:d9ba6d8e-c01b-43f1-b7da-9983726392d0</guid><dc:creator>Former Member</dc:creator><description>Hi ,

i do it but the status is not changed

with this code :

partItem.promote(&amp;quot;in Bearbeitung&amp;quot;,&amp;quot;Promoted&amp;quot;);&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change status life cycle</title><link>https://www.aras.com/community/thread/1940?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 09:16:22 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:c007bb65-c708-46a6-b833-093551054191</guid><dc:creator>Eli Donahue</dc:creator><description>Hi Ahmed,

You can promote an item in code using the promote() method. Just pass a parameter with the name of the state you want to promote the item to. This will send a request to the server to promote the item and return the response. Note that the promote method does not update the context item itself.

Eli

&lt;hr /&gt;

Eli Donahue

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change status life cycle</title><link>https://www.aras.com/community/thread/1939?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 09:06:27 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:05fb670e-7f01-4d13-8346-e3345fe6caf4</guid><dc:creator>Former Member</dc:creator><description>Hi  , Thank you for your answer .

but how can i do it manual .

i created method with this code :

var innovator = new Innovator();
var t5id = getFieldByName(&amp;quot;text0&amp;quot;).getElementsByTagName(&amp;quot;input&amp;quot;)[0].value;
var t5date = getFieldByName(&amp;quot;text1&amp;quot;).getElementsByTagName(&amp;quot;input&amp;quot;)[0].value;
var t5name = getFieldByName(&amp;quot;text2&amp;quot;).getElementsByTagName(&amp;quot;input&amp;quot;)[0].value;
var t5comment = getFieldByName(&amp;quot;text3&amp;quot;).getElementsByTagName(&amp;quot;input&amp;quot;)[0].value;
var t5button = getFieldByName(&amp;quot;Update&amp;quot;).getElementsByTagName(&amp;quot;input&amp;quot;)[0].value;

var partItem = innovator.newItem(&amp;quot;result4&amp;quot;,&amp;quot;update&amp;quot;);
var id = document.thisItem.getProperty(&amp;quot;id&amp;quot;);
partItem.setID(id);
partItem.setProperty(&amp;quot;t4id&amp;quot;, t5id);
partItem.setProperty(&amp;quot;t4date&amp;quot;, t5date);
partItem.setProperty(&amp;quot;t4name&amp;quot;, t5name);
partItem.setProperty(&amp;quot;t4comment&amp;quot;, t5comment);
partItem.apply();
-------------------------------------------------------------------

I want, if the button is pressed, the status should be changed&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change status life cycle</title><link>https://www.aras.com/community/thread/1938?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 08:50:41 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:247c80f6-f982-40d0-a01e-87245dd78192</guid><dc:creator>Eli Donahue</dc:creator><description>Hi Ahmed,

If you want to change the LifeCycle state of a specific item, you can use the &amp;quot;promote&amp;quot; button or menu option. It is also possible to promote items via the workflow, but manual promotions are the most straightforward.

Eli

&lt;hr /&gt;

Eli Donahue

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>