Hi Roberto,

It works as expected with :
{{ document.workflows.all.0.get_current_state }}

But I do not manage it with the following :
{{ document.workflows.all.0.get_current_state=EN_PREPARATION }}

Any idea ?


2016-04-10 9:15 GMT+02:00 Roberto Rosario <
[email protected]>:

> Hi Bruno,
>
> Thank you! We have worked very hard.
>
> At the moment while not documented it is possible to index documents based
> on their workflows properties. This is not finished yet (which is why is
> not documented) and after transitioning the document from to a new state,
> that change will not be reflected on the index.
> This is the syntax to access the current state of a document's workflow.
>
> {{ document.workflows.all.0.get_current_state }}
>
>  "all.0" gets the first workflow instance for the document. Ways to access
> a document's workflows by their label or a slug (instead of an id) are
> being explored.
>
> A big refactor of the workflow system is planned post version 2.1.
>
> https://gitlab.com/mayan-edms/mayan-edms/wikis/roadmap
>
> Hopefully we'll have time to add workflow indexing support as part of the
> overhaul.
>
>
> On Thursday, April 7, 2016 at 5:45:22 PM UTC-4, Bruno CAPELETO wrote:
>>
>> Dear Roberto,
>>
>> I discovered Mayan yesterday and after installation it is looking so
>> promissing that I am already spending my 2nd night on it :-)
>>
>> Looking through the Q&A I understood the concept behind the Indexes (I
>> was first looking at automatic folders).
>> However, I could not find how to build advanced indexes regarding
>> workflow.
>>
>> As an example of workflow, let's take a bill workflow with the following
>> status : in preparation / issued / paid
>> What would be the syntax of the index to retrieve the bills separated
>> within the 3 different status ?
>>
>> More generally, where could one find the different possible syntaxes ?
>>
>> Thanks in advance,
>> Bruno
>>
>> --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Mayan EDMS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/mayan-edms/s8fGI-5BN6k/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to