12-10-2013 08:35 AM
Hi guys, I have two question:
1) I have an entity called Report and this Report can be related to one or more Missions existing in the database(another entity). On Report Creation Form, we want to create a list where the user can select more than one Mission related.
But I don't know which widget we can use there. We must apply some query in that Mission list. I know how create a list of "vocabulary", but we don't know how create a list for an entity, and how apply a query in this entity. Could someone help me?
2) I have a Workflow for Report and this workflow has 2 Tasks (nodes). The Task1 was forwarded to User1. This task has a field called "COMMENTS". I've set this value into a Workflow variable called "responsible_comments". User1 fills this field, responds to User2 and this Task is finished. The Task2 is started and I want to retrieve the last value of the "responsible_comments" into a Task2 form. I've built the Task2 Form using the Workflow variable "responsible_comments", but this value is empty. How can I show this value into Task2 Form?
Follow the picture below
12-10-2013 10:04 AM
Hi,
12-10-2013 03:14 PM
Hello,
12-11-2013 05:50 AM
Hi,
12-11-2013 07:36 AM
Hi,
12-11-2013 09:22 AM
In the first node, in Column 1, you have "Responsible comment", which looks like suspect.
12-11-2013 10:24 AM
I made the changes, and still appears empty.
12-11-2013 10:37 AM
Sorry, I've no more idea.
12-12-2013 06:05 AM
Hi,
12-12-2013 07:30 AM
1) What you're looking for is probably the "singleDocumentSuggestion" widget since Missions seem to be documents rather than static info from a vocabulary.
To make sure you can only choose mission documents, you'll have to set the "Document page provider name" to a custom "page provider". Those can only be contributed in XML right now (Advanced settings in Studio), here is some sample code:
<extension point="providers" target="org.nuxeo.ecm.platform.query.api.PageProviderService">
<coreQueryPageProvider name="missionsProvider">
<pattern>
SELECT * FROM Mission WHERE ecm:currentLifeCycleState != 'deleted'
</pattern>
</coreQueryPageProvider>
</extension>
(more pageprovider examples at: http://explorer.nuxeo.org/nuxeo/site/distribution/Nuxeo%20Platform-5.8/viewExtensionPoint/org.nuxeo....
2) Why don't you assign the same workflow variable "responsible_comments" to both tasks? Unless I misunderstood something you used a node/task variable for Task1 while you could directly use "responsible_comments". Unless you overwrite "responsible_comments" between tasks, there's no reason its value could disappear.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.