<?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: Custom extension - access properties in definition in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90110#M61319</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you tell a bit more about your custom extension? Maybe show some code as well?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2012 07:18:12 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2012-04-03T07:18:12Z</dc:date>
    <item>
      <title>Custom extension - access properties in definition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90108#M61317</link>
      <description>This is my first post,so first, thanks to JBPM4 and now Activiti5 developers.I made a custom extension with the aid of the user guide, and works well.Now, how can I access these properties in the process definition?I can use activity definition via getDeployedProcessDefinition and getActivities,but</description>
      <pubDate>Sun, 01 Apr 2012 07:13:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90108#M61317</guid>
      <dc:creator>steve1</dc:creator>
      <dc:date>2012-04-01T07:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom extension - access properties in definition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90109#M61318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Noboby is instrested in this topic?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There will be many use-cases in using the Workflow/BPM system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One case is that, an application(like Alfresco) needs to do task management and processing complicated UI form and business logic, but others like designing proess definition and processing flow will be done by the Activiti.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some custom extensions will be needed to make things simple such as specifying predefined custom properties will lead to the corresponding UI form and business logic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When deploying the process flow, the application will be needed to investigate the custom properties to configure what kind of UI form and processing is required with that process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The application can check also if that process flow does not match with the application, because the specified properties does not meet the required properties, and throwing exception to redploy the correct process definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I need to check the custom properties in the process definition with the method that is described in the posting above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any comment will be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 21:04:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90109#M61318</guid>
      <dc:creator>steve1</dc:creator>
      <dc:date>2012-04-02T21:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Custom extension - access properties in definition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90110#M61319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you tell a bit more about your custom extension? Maybe show some code as well?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 07:18:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90110#M61319</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-04-03T07:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom extension - access properties in definition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90111#M61320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, here is my code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. designer custom extension code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;@Runtime(delegationClass="com.test.runtime.MyTask")&lt;BR /&gt;@Help(displayHelpShort=HELP_COMP_SHORT, displayHelpLong=HELP_COMP_LONG)&lt;BR /&gt;public class MyTask extends AbstractCustomServiceTask {&lt;BR /&gt; &lt;BR /&gt; @Property(type=PropertyType.COMBOBOX_CHOICE, displayName=TITLE_TYPE, required=true)&lt;BR /&gt; @Help(displayHelpShort=HELP_TYPE_SHORT, displayHelpLong=HELP_TYPE_LONG)&lt;BR /&gt; @PropertyItems({"TYPE1", "TYPE2"})&lt;BR /&gt; private String taskType;&lt;BR /&gt; &lt;BR /&gt; @Property(type=PropertyType.BOOLEAN_CHOICE, displayName=TITLE_SCOPE, required=true)&lt;BR /&gt; @Help(displayHelpShort=HELP_SCOPE_SHORT, displayHelpLong=HELP_SCOPE_LONG)&lt;BR /&gt; private String multiScope;&lt;BR /&gt;}&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;2. custom extension rutime class&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt; private Expression taskType;&lt;BR /&gt; private Expression multiScope;&lt;BR /&gt; &lt;BR /&gt; @Override&lt;BR /&gt; public void execute(ActivityExecution execution) throws Exception {&lt;BR /&gt;&amp;nbsp; String valTaskType = taskType == null ? null : (String) taskType.getValue(execution);&lt;BR /&gt;&amp;nbsp; boolean valMultiScope = multiScope == null ? false : ("true".equals(multiScope.getValue(execution)) ? true : false);&lt;BR /&gt; }&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;3. my application : access custom properties in the process definition&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; ReadOnlyProcessDefinition roProcDef = ((RepositoryServiceImpl)repositoryService).getDeployedProcessDefinition(wfDefinitionId);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; List&amp;lt;ActivityImpl&amp;gt; activities = (List&amp;lt;ActivityImpl&amp;gt;)roProcDef.getActivities();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; for(ActivityImpl activity : activities) {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; String type = (String)activity.getProperty("type");&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if("serviceTask".equals(type)) {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(activity.getActivityBehavior() instanceof ClassDelegate) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ClassDelegate delegate = (ClassDelegate) activity.getActivityBehavior();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;FieldDeclaration&amp;gt; fields = delegate.getFieldDeclarations();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(FieldDeclaration field : fields) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if("taskType".equals(field.getName()))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; taskType = value.getExpressionText();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if("multiScope".equals(field.getName())) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; multiScope = "true".equals(value.getExpressionText()) ? true : false;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if(activity.getActivityBehavior() instanceof MultiInstanceActivityBehavior) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MultiInstanceActivityBehavior behavior = (MultiInstanceActivityBehavior) activity.getActivityBehavior();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ClassDelegate delegate = (ClassDelegate) behavior.getInnerActivityBehavior();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;FieldDeclaration&amp;gt; fields = delegate.getFieldDeclarations();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // same code&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;As you can see in list 3, I want to access custom properties that are defined in the custom extension.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can access defined activities by ReadOnlyProcessDefinition.getActivities().&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the activity is a serviceTask, then I need to check custom properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ClassDelegate.getFieldDeclarations() is what I want to be done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this getter is provided, I can access my custom field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, MultiInstanceActivityBehavior.getInnerActivityBehavior() is needed to get original ActivityBehavior(=ClassDelegate above).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know deeply about Activiti source code, but this is just what I've investigated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is a correct approach, I need these getters supported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 09:43:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90111#M61320</guid>
      <dc:creator>steve1</dc:creator>
      <dc:date>2012-04-03T09:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Custom extension - access properties in definition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90112#M61321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay with the code I can understand your question a bit better.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why don't you use the MyTask custom extension class to get the custom property info.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't understand why you want to read the property information from the process definition itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you explain this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 09:51:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90112#M61321</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-04-03T09:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Custom extension - access properties in definition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90113#M61322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure, I'll explain my application a bit more.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My application has two parts with regard to BPM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One part is a administration part and the other is a user part.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you said, I can use custom properties in the custom runtime class in a user part.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Administration part has some functions like deploying process definition and configuring system with that process information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One example is that when deploying process definition, I can check whether the process definition contains correct custom properties, so that it can run without problem in a user part.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another example will be the authorization management based on the custom properties.&amp;nbsp; Application administrator will configure some authorization rules based on the custom properties, so that a user can use this application with this pre-defined authorization.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More appropriate example will be the task management by the application, not by Activiti. Administrator will configure task definition based on the activity ID and custom properties. When a process instance starts, custom runtime class will request this definition with it's ID, and a task will be created. Also a user will be assigned by the definition. If the user loggs in, he can find todo task, and work on the predefined task view and business logic based on the task definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My English is not good, but this is what I can describe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 12:38:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90113#M61322</guid>
      <dc:creator>steve1</dc:creator>
      <dc:date>2012-04-03T12:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Custom extension - access properties in definition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90114#M61323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think a good option would be to use a BpmnParseListener.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can configure a pre or post parse listener which is invoked when a new process definition is deployed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this parse listener you get the raw XML elements, so you can validate whatever you would like.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's possible to configure a pre or post parse listener in the Activiti process engine configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For an example you can take a look at the HistoryParseListener implemented in the Activiti Engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 07:38:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90114#M61323</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-04-04T07:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Custom extension - access properties in definition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90115#M61324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your recommendation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll check that option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you. &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 15:48:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90115#M61324</guid>
      <dc:creator>steve1</dc:creator>
      <dc:date>2012-04-04T15:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Custom extension - access properties in definition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90116#M61325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before investigating the BpmnParseListener, I think there can ce some problems with this option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. It will be asychronous, so administrator UI would be separated to two parts: one for deployment, and the other for custom task definition. This is not serious, and I can have additional field to check if parsing was succeeeded before handling custom task definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. My application will be needed to have duplicate copy of the activity definition which already exists in Activiti. I just want to call Activiti to get activity definition without copying them in my application storage.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Parsing the process definition will give full information about the process, but if I don't need any additional properties, parsing will be another duplicate job that is already done by Activiti.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I think that just two or mote getters will make things simple.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do you think about that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, the BpmnParseListener is a good information for me if I need additional properties about the process definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your comment will be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 05:53:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90116#M61325</guid>
      <dc:creator>steve1</dc:creator>
      <dc:date>2012-04-05T05:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Custom extension - access properties in definition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90117#M61326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No more comments, so I'll close this topic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Until now, I have two options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Change Activiti source code, and use my own build of Activiti, waiting somday when two getters will be supported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what I have done already, but not good solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Use BpmnParseListener, make some additional code, and use original build of Activiti.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The way to go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2012 15:22:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90117#M61326</guid>
      <dc:creator>steve1</dc:creator>
      <dc:date>2012-04-06T15:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Custom extension - access properties in definition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90118#M61327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I reopen this toipc, because I have some problems implementing BpmnParseListener.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried saving custom properties on my application's database by implementing parseServiceTask().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The parameter of activity gives all informations about that activity's XML definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But activity.getProcessDefinition() returns null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Implementation of parseProcess() is called after the parseServiceTask() ends, so I can't use this,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;more over, processDefinition in the parseProcess() has null ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think because these methods are called on parsing phase, so not fully initialized yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is where my problem arises.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I save custom properties related to the process definition that I'm deploying.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I can't relate custom properties to the process definition, I can not use this properties at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you help me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 13:53:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90118#M61327</guid>
      <dc:creator>steve1</dc:creator>
      <dc:date>2012-04-11T13:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom extension - access properties in definition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90119#M61328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I made a mistake in the above post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I only checked with printing activity.getProcessDefinition(), and it printed like ProcessDefinitionEntity[null], so I mis-understood that process definition was null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Process definition is not null in the parseServiceTask(), but geiId() returns null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can get process definition, so I think I can manage custom properties with the process key.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for confusion.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 03:21:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-extension-access-properties-in-definition/m-p/90119#M61328</guid>
      <dc:creator>steve1</dc:creator>
      <dc:date>2012-04-12T03:21:27Z</dc:date>
    </item>
  </channel>
</rss>

