<?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: @Autowired in custom renderer - no service exists in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133267#M93598</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can't get the process instance injected, that works only for service tasks or expressions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How retrieve the execution Id, if the change of the process variables need to be realized inside of UI.Renderer context???&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;That's not necessary, if you hook in the custom renderer, it will automatically be saved to a process variable.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Dec 2012 16:06:14 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2012-12-18T16:06:14Z</dc:date>
    <item>
      <title>@Autowired in custom renderer - no service exists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133264#M93595</link>
      <description>Hi all,we need to allow in user task to select the condition, that will be used on condition flow / gateway.As first step of those realisation with Activiti 5.10 i have created the custom form type/render/validation, registered that in applacationContext /ui-context xml files.Then i would be set the</description>
      <pubDate>Mon, 10 Dec 2012 16:40:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133264#M93595</guid>
      <dc:creator>udoderk</dc:creator>
      <dc:date>2012-12-10T16:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: @Autowired in custom renderer - no service exists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133265#M93596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The runtimeservice can be autowired, but the process instance not. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But in any case, the runtimservice should not be null. Is the bean you are injecting it in, also defined in Spring? Do you use component scanning (ie is it enabled?)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 07:23:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133265#M93596</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-12-11T07:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: @Autowired in custom renderer - no service exists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133266#M93597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The runtimeservice can be autowired, but the process instance not. &lt;BR /&gt;&lt;BR /&gt;But in any case, the runtimservice should not be null. Is the bean you are injecting it in, also defined in Spring? Do you use component scanning (ie is it enabled?)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi jbarrez, now i have noticed that I've posted in the wrong section &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ops:&amp;nbsp; &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ops:&amp;nbsp; &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ops: (i would to post on activiti explorer section).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thank you for pointing to control Spring configuration xml tags: I'm found, that &lt;/SPAN&gt;&lt;CODE&gt;&amp;lt;context:annotation-config /&amp;gt;&lt;/CODE&gt;&lt;SPAN&gt; was missed &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&amp;nbsp; into applicationContext.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, after allowing the annotation wiring the runtimeservice is &lt;/SPAN&gt;&lt;STRONG&gt;not a null&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yesterday I found that autowired annotation &lt;/SPAN&gt;&lt;EM&gt;@Autowired protected ProcessInstance processInstance &lt;/EM&gt;&lt;SPAN&gt; was used in &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=3168&amp;amp;p=12706&amp;amp;hilit=ProcessInstance+%40Autowired+ProcessInstance+processInstance#p12706" rel="nofollow noopener noreferrer"&gt;that&lt;/A&gt;&lt;SPAN&gt; example&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;During cheking of applicationContext.xml i have found that there is no beans named &lt;/SPAN&gt;&lt;EM&gt;ProcessInstance &lt;/EM&gt;&lt;SPAN&gt; exist&amp;nbsp; :cry: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Only with runtimservice i can't change the process variable using &lt;/SPAN&gt;&lt;EM&gt;setValue &lt;/EM&gt;&lt;SPAN&gt;method, because this method needs the execution Id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How retrieve the&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=1533&amp;amp;hilit=executionId" rel="nofollow noopener noreferrer"&gt;execution Id,&lt;/A&gt;&lt;SPAN&gt; if the change of the process variables need to be realized inside of UI.Renderer context??? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(The custom renderer was already registered on formPropertyRendererManager bean as list entry&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;bean id="formPropertyRendererManager" class="org.activiti.explorer.ui.form.FormPropertyRendererManager" lazy-init="true"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– Default renderer –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="noTypePropertyRenderer"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean class="org.activiti.explorer.ui.form.StringFormPropertyRenderer" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– Renderers by property type –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="propertyRenderers"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;list&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean class="org.activiti.explorer.ui.form.StringFormPropertyRenderer" /&amp;gt;&lt;BR /&gt;…&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean class="com.myspace.ui.renderer.DoubleFormPropertyRenderer" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/list&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt; )&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S now i know, that i need not process instance id - but&lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=1533&amp;amp;hilit=executionId" rel="nofollow noopener noreferrer"&gt;execution id&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 10:04:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133266#M93597</guid>
      <dc:creator>udoderk</dc:creator>
      <dc:date>2012-12-11T10:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: @Autowired in custom renderer - no service exists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133267#M93598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can't get the process instance injected, that works only for service tasks or expressions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How retrieve the execution Id, if the change of the process variables need to be realized inside of UI.Renderer context???&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;That's not necessary, if you hook in the custom renderer, it will automatically be saved to a process variable.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 16:06:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133267#M93598</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-12-18T16:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: @Autowired in custom renderer - no service exists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133268#M93599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can't get the process instance injected, that works only for service tasks or expressions.&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How retrieve the execution Id, if the change of the process variables need to be realized inside of UI.Renderer context???&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;That's not necessary, if you hook in the custom renderer, it will automatically be saved to a process variable.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi jbarrez,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More Details:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;: I modified the &lt;/SPAN&gt;&lt;EM&gt;vacation request&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp; example from activiti demo : "enum" replaced by "true"/"false" values:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;…………..&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;exclusiveGateway id="requestApprovedDecision" name="Request approved?" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow3" sourceRef="requestApprovedDecision" targetRef="sendApprovalMail"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;${vacationApproved == 'true'}&amp;lt;/conditionExpression&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;…………&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;After i deploy the whole &lt;/SPAN&gt;&lt;EM&gt;vacation request&lt;/EM&gt;&lt;SPAN&gt; bpmn file,&amp;nbsp; the 2 checkboxs appears - like following pseudogui&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;|X| -&lt;/SPAN&gt;&lt;STRONG&gt;requestApproved&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;|..| - &lt;/SPAN&gt;&lt;STRONG&gt;requestNotApproved&lt;/STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If i click on &lt;/SPAN&gt;&lt;STRONG&gt;requestNotApproved&lt;/STRONG&gt;&lt;SPAN&gt;, so &lt;/SPAN&gt;&lt;EM&gt; clickEvent&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp; fired and i wish set the value for &lt;/SPAN&gt;&lt;EM&gt;vacationApproved &lt;/EM&gt;&lt;SPAN&gt; programatically (a-ka &lt;/SPAN&gt;&lt;EM&gt;vacationApproved &lt;/EM&gt;&lt;SPAN&gt;='false'). This setting method would be called into checkbox click -event-handling of boolean renderer, that i can change too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To set &lt;/SPAN&gt;&lt;EM&gt;vacationApproved &lt;/EM&gt;&lt;SPAN&gt; i would use the RuntimeService.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The RuntimeService has two methods, that have as parameter &lt;/SPAN&gt;&lt;EM&gt;executionId&lt;/EM&gt;&lt;SPAN&gt;, that cannot be null!.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wish to set the value for the process variable. That process variable used on the flow condition, that was declared into bpmn xml file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation of the setvalue methods.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;/** Update or create a variable for an execution.&amp;nbsp; If the variable is not already existing somewhere in the execution hierarchy,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * it will be created in the process instance (which is the root execution). &lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @param executionId id of execution to set variable in, cannot be null.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @param variableName name of variable to set, cannot be null.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @param value value to set. When null is passed, the variable is not removed,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * only it's value will be set to null.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @throws ActivitiException when no execution is found for the given executionId. &lt;BR /&gt;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp; void setVariable(String executionId, String variableName, Object value);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; /** Update or create a variable for an execution (not considering parent scopes). &lt;BR /&gt;&amp;nbsp;&amp;nbsp; * If the variable is not already existing, it will be created in the given execution.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @param executionId id of execution to set variable in, cannot be null.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @param variableName name of variable to set, cannot be null.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @param value value to set. When null is passed, the variable is not removed,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * only it's value will be set to null.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @throws ActivitiException when no execution is found for the given executionId.&amp;nbsp; */&lt;BR /&gt;&amp;nbsp; void setVariableLocal(String executionId, String variableName, Object value);&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thus imho i need the &lt;/SPAN&gt;&lt;EM&gt;executionId &lt;/EM&gt;&lt;SPAN&gt; value&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 16:18:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133268#M93599</guid>
      <dc:creator>udoderk</dc:creator>
      <dc:date>2012-12-18T16:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: @Autowired in custom renderer - no service exists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133269#M93600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use the process instance id as "executionId" value, the process-instance is an execution itself…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 08:38:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133269#M93600</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-12-19T08:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: @Autowired in custom renderer - no service exists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133270#M93601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can use the process instance id as "executionId" value, the process-instance is an execution itself…&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Hi frederikheremans, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your prompt reply!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But how do I get &lt;/SPAN&gt;&lt;EM&gt;process instance id&lt;/EM&gt;&lt;SPAN&gt; in ui Renderer-Context?? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I use the activiti explorer, i'm don't start itself the business process using activiti API&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could use the process instance id as "executionId" in this case , but if the subprocess would be used, process instance id is not same as executionId":&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=4291&amp;amp;view=previous" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=4291&amp;amp;view=previous&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;frederikheremans&amp;nbsp; &lt;BR /&gt; Post subject: Re: Question considering process correlation&lt;BR /&gt;Posted: Mon Jul 23, 2012 7:56 am &lt;BR /&gt;&lt;BR /&gt;Joined: Thu Aug 26, 2010 6:59 am&lt;BR /&gt;Posts: 1595&lt;BR /&gt;Location: Aarschot, Belgium&amp;nbsp; &lt;BR /&gt;Use the business-key to correlate between an unique ID and a process-instance. When starting the process, you can pass that in. Afterwards, you can query for the process-instance OR child-executions using executionQuery.processInstanceBusinessKey(…).&lt;BR /&gt;&lt;BR /&gt;A process-instance is indeed an "execution", &lt;STRONG&gt;it's the ROOT execution&lt;/STRONG&gt; for a running process. &lt;STRONG&gt;When a process splits into 2 parallel paths or needs a sub-scope&lt;/STRONG&gt; (e.g.. subprocess), one or more child-executions are created. These executions reference the process-instance. On a ProcessInstance object, you can get the "process definition id", on an execution, you can't do this directly (can be done using the process-instance-id however). The business-key is a globally UNIQUE identifier YOU can give to a certain process. This key is not used by activiti, this uses the internal ID's. The business-key allows you to lookup a process-instance based on some key your business uses (hence the term).&lt;BR /&gt;&lt;BR /&gt;In case of call-activities, you'll have a process-instance for your main process (game loop) and one for your call-activity. Potentially, there are more executions in between them, depending in the type of process.&lt;BR /&gt;&lt;BR /&gt;Hopes this helps.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=4799&amp;amp;start=0" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=4799&amp;amp;start=0&lt;/A&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are executionId and processInstaceId always the same?&lt;BR /&gt;jbarrez&amp;nbsp; &lt;BR /&gt; Post subject: Re: Are executionId and processInstaceId always the same?&lt;BR /&gt;Posted: Wed Oct 24, 2012 7:05 am &lt;BR /&gt;&lt;BR /&gt;Joined: Sun May 16, 2010 12:14 pm&lt;BR /&gt;Posts: 1690&lt;BR /&gt;Location: Belgium&amp;nbsp; &lt;BR /&gt;No, depending on the complexity of your process you will have multiple executions (eg for each parallel path, for each scope, ect.) as child of the process instance or even nested.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;P.P.S i tried to use the &lt;/SPAN&gt;&lt;EM&gt;impl&lt;/EM&gt;&lt;SPAN&gt; class &lt;/SPAN&gt;&lt;EM&gt;org.activiti.engine.impl.context.Context&lt;/EM&gt;&lt;SPAN&gt; in my renderer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; try {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ExecutionContext executionContext = org.activiti.engine.impl.context.Context.getExecutionContext();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if (executionContext == null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("executionContext is NULL");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("executionContext is not null");&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExecutionEntity execution = executionContext.getExecution();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (execution == null) {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("execution getId " + execution.getId());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("execution getProcessInstanceId&amp;nbsp; " + execution.getProcessInstanceId());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("execution getProcessDefinitionId&amp;nbsp; " + execution.getProcessDefinitionId());&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; } catch (Exception ex) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ex.printStackTrace();&lt;BR /&gt;&amp;nbsp; }&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;But the EmptyStackException will be thrown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;java.util.EmptyStackException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.Stack.peek(Stack.java:102)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.activiti.engine.impl.context.Context.getExecutionContext(Context.java:68)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.tst.activiti.explorer.ui.renderer.MyRenderer.intializeField(MyRenderer.java:42)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.tst.activiti.explorer.ui.renderer.MyRenderer.getPropertyField(MyRenderer.java:110)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.activiti.explorer.ui.form.FormPropertiesComponent.setFormProperties(FormPropertiesComponent.java:69)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.activiti.explorer.ui.form.FormPropertiesForm.setFormProperties(FormPropertiesForm.java:75)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.activiti.explorer.ui.task.TaskDetailPanel.initTaskForm(TaskDetailPanel.java:306)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.activiti.explorer.ui.task.TaskDetailPanel.init(TaskDetailPanel.java:118)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.activiti.explorer.ui.task.TaskDetailPanel.attach(TaskDetailPanel.java:99)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.vaadin.ui.AbstractComponent.setParent(AbstractComponent.java:570)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 10:51:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133270#M93601</guid>
      <dc:creator>udoderk</dc:creator>
      <dc:date>2012-12-19T10:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: @Autowired in custom renderer - no service exists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133271#M93602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Now I understand your issue… The form-properties are rendered outside of the activiti-context, so it makes sense the Context throws and EmptyStackEx.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since the form-properties are also used for start-forms, they are made so generic, that they aren't aware of any process-instance that might be active.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TaskDetailPanel:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt; protected void initTaskForm() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Check if task requires a form&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TaskFormData formData = formService.getTaskFormData(task.getId());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(formData != null &amp;amp;&amp;amp; formData.getFormProperties() != null &amp;amp;&amp;amp; formData.getFormProperties().size() &amp;gt; 0) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; taskForm = new FormPropertiesForm();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; taskForm.setSubmitButtonCaption(i18nManager.getMessage(Messages.TASK_COMPLETE));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; taskForm.setCancelButtonCaption(i18nManager.getMessage(Messages.TASK_RESET_FORM));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; taskForm.setFormHelp(i18nManager.getMessage(Messages.TASK_FORM_HELP));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; taskForm.setFormProperties(formData.getFormProperties());&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;The class org.activiti.explorer.ui.form.FormPropertiesForm only receives the form-properties and no process-context. Your use case makes sense, though. If you want, you could add a processInstanceId and executionId (which may be null) to the render() method of form-properties and make sure it's passed from initiTaskForm() in TaskDetailPanel, al the way down to the actual render call. If you create a pull-request for this, I'm happy to accept it…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 09:36:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133271#M93602</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-12-21T09:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: @Autowired in custom renderer - no service exists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133272#M93603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Now I understand your issue… The form-properties are rendered outside of the activiti-context, so it makes sense the Context throws and EmptyStackEx……&lt;BR /&gt;The class org.activiti.explorer.ui.form.FormPropertiesForm only receives the form-properties and no process-context. Your use case makes sense, though. If you want, you could add a processInstanceId and executionId (which may be null) to the render() method of form-properties and make sure it's passed from initiTaskForm() in TaskDetailPanel, al the way down to the actual render call. If you create a pull-request for this, I'm happy to accept it…&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Thank you very much 8-) I have created the wish in jira &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-1500" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-1500&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 10:29:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133272#M93603</guid>
      <dc:creator>udoderk</dc:creator>
      <dc:date>2012-12-21T10:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: @Autowired in custom renderer - no service exists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133273#M93604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks… 1500'th issue, hooray!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 13:29:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowired-in-custom-renderer-no-service-exists/m-p/133273#M93604</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-12-21T13:29:44Z</dc:date>
    </item>
  </channel>
</rss>

