AnsweredAssumed Answered

link to a folder in a workflow

Question asked by vmiorga on Oct 17, 2017
Latest reply on Nov 9, 2017 by vmiorga

Hello I have an issue about creating a link to a folder. I thought that I get the theory, but I miss something on the technical side:

 

I my workflow the initiator chose a folder and the user have a link (the http link) in his task which allow him to access to this folder.

 

My startTask have this field:

<mandatory-aspects>
                <aspect>ddg:replyLocation</aspect>
</mandatory-aspects>

where ddg:replyLocation is define as:

<aspect name="ddg:replyLocation">
        <associations>
            <association name="ddg:replyLocation">
                    <source>
                        <mandatory>false</mandatory>
                        <many>true</many>
                    </source>
                    <target>
                        <class>cm:folder</class>
                        <mandatory>true</mandatory>
                        <many>false</many>
                    </target>
                </association>
               </associations>
        </aspect>

The initiator part works.

For the user part I did this:

I try to use the type app:folderLink, but I don't get what I expect:

 

here I get the bouton to change the folder, and I don't get the link.

for the user Task I used the type app:linkFolder:

define like this in the model:

<association name="ddg:linkFolder">
                    <source>
                           <mandatory>false</mandatory>
                           <many>true</many>
                    </source>
                    <target>
                           <class>app:folderlink</class>
                           <mandatory>true</mandatory>
                           <many>false</many>
                    </target>                
</association>

 

and initialise like this in the bpmn (in the userTask script)

 

var ddg_linkFolder=ddg_replyLocation.getNodeRef();

execution.setVariable('ddg_linkFolder', ddg_linkFolder);

 

To summarize:

  • does the type app:linkFolder allow to get a link to open a folder, (the url of the folder)?
  • what did I have to correct to have a "redirection link" to the selected folder?

Outcomes