Comala workflow - state In progress and cannot change it

piecia August 20, 2020

Good day

I'm testing comala workflow. Sometime when I create a workflow for a page, I put a sample workflow via edit with markup. After this the page has status In progress.

When I click at In progress link, a popup unfolds for a moment, and disappears. The icon near to In Progress link is grey not yellow.

When editing the workflow via Workflow Builder I see that I have only one rule, for example: approval-approved: Review. I don't see neither page-created nor page-updated rule.

Why I cannot change the state of page?

I use sample for this page: https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Comala-Workflow-provide-assignable-approval-with-default/qaq-p/1145287

 

Today I've created two pages with my workflow and both of them work. But yesterday I had similar problem.

Best regards, Piotr

 

1 answer

0 votes
piecia August 21, 2020

Ok, I found. There was missing In Progress state. But I don't know why it works for other pages and workflowes.

https://wiki.comalatech.com/display/CWL/Confused+States+-+Grey+Circle

https://wiki.comalatech.com/display/CWL/Status+Indicator+Circles

James Conway
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 8, 2020

Hi @piecia 

Apologies for not picking up your post earlier. If you are still having problems please contact our friendly support team at https://support.comalatech.com.

It would be really useful if you could attach your workflow markup as a text file and confirm which version of Comala Document Management (previously known as Comala Workflows) you are running.

Kind regards

James
Senior Product Manager

piecia September 9, 2020

Hi @James Conway 

Below is "not working" version which I found on "my" pages:

{workflow:name=Certificate workflow|updatestatus=true}
{description}
{description}
{workflowparameter:SetReminder|description=The date of expiration for page. Set an earlier date than RealExpiry to get an earlier reminder.|type=duration|edit=true}
2021-06-10
{workflowparameter}
{workflowparameter:RealExpiry|description=Actual expiry date. It'll be posted in the email.|type=duration|edit=true}
2021-06-17
{workflowparameter}
{workflowparameter:recipients|type=user|edit=true}
{workflowparameter}
{workflowparameter:recipients-groups|type=group|edit=true}
{workflowparameter}
{state:Published|final=true|submit=Expired|expired=Expired|duedate=@SetReminder@|requiredparams=SetReminder,RealExpiry}
{state}
{state:Expired|submit=Published|hideselection=true|colour=#ffab00}
{state}
{trigger:stateexpired|state=Published}
{send-email:user=@recipients-groups@,@recipients@|subject=The certificate @page@ will be expired}
The certificate @page@ will be expired soon, at @RealExpiry@. Update it.
{send-email}
{trigger}
{trigger:pagecreated}
{set-metadata:Document Author}@user@{set-metadata}
{trigger}
{trigger:pageupdated}
{set-metadata:Document Updater}@user@{set-metadata}
{trigger}
{workflow}

As I said earlier there was missing In progress state:

{state:In Progress|submit=Published|colour=#ffab00}
{state}
{state:Published|final=true|submit=Expired|expired=Expired|duedate=@SetReminder@|requiredparams=SetReminder,RealExpiry}
{state}
{state:Expired|hideselection=true|colour=#ffab00}
{state-selection:states=Published,In Progress}
{state}

But it's interesting why it works/ed on some pages.

The version of Comala which I use: v.6.7.2, but I'm not sure at 100%.

James Conway
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 11, 2020

Hi @piecia 

Two things you could you try:

* Initialize states from the Space Admin dashboard - https://wiki.comalatech.com/display/CDML/Initialize+States

* the Administrator State Override on the pages that are in a confused state - https://wiki.comalatech.com/display/CDML/Administrator+state+override 

Kind regards

James
Senior Product Manager 

piecia September 11, 2020

Thank you

piecia September 17, 2020

Hi @James Conway 

I have yet another question.

I use this template for various pages but with changed parameters in the template:

{workflowparameter:SetReminder|description=The date of expiration for page. Set an earlier date than RealExpiry to get an earlier reminder.|type=duration|edit=true}
        
2020-08-01
{workflowparameter}
{workflowparameter:RealExpiry|description=Actual expiry date. It will be posted in the email.|type=duration|edit=true}
        2020-09-01
{workflowparameter}

After creating an empty page I add new workflow. I paste markup definition, with those parameters, click save.

But when I click edit parameters I see:

Screen Shot 2020-09-17 at 13.09.55.png

I wonder where are these values, where are they stored? In Space Tools -> Overview -> Document Management -> Parameters I can find only this:

Screen Shot 2020-09-17 at 13.13.11.png

Why do the parameters have a different value? Why aren't values used from markup definition?

Is it possible not to give values for the parameters but to use some function e.g. now()?

Kind regards

James Conway
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 21, 2020

Hi @piecia 

I will investigate why you are seeing 'undefined' on that screen.

If you want to set the value of your parameter based on a duration from 'now', I suggest you look at using a 'Period' value for your workflow parameters, e.g. in the Workflow Builder:

cdm_wfb_editparameter_panel

For more detail on editing workflow parameters in the Builder, see https://wiki.comalatech.com/display/CDML/Edit+workflow+parameters+using+workflow+builder

If you prefer to edit using workflow markup, see https://wiki.comalatech.com/display/CDML/Expiry+Dates

 

Kind regards

 

James
Senior Product Manager

piecia September 23, 2020

Good day

I was wondering if it is possible to fill workflow with generic data. As for example for a parameter of the string type, taking the current date. So I talked about "now()".

I've created a template which I only paste in new pages. If I omit value for parameter RealExpiry or SetReminder I get error:

Error in workflow markup:

workflow: The value of [Ljava.lang.Object;@5d52a5c5 ({1}) is not a valid time period

I have to use duedate option instead of others.

Those undefined values are visible only under Space Tools and I don't have always access to that place. But I'm more curious where the parameter values come from the first time they are set.

2020-08-01 != 2021-06-10
and
2020-09-01 != 2021-06-17
James Conway
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 23, 2020

Hi @piecia 

I think we need some more details about your workflow and templates than is appropriate to share here.

Could you create a support ticket at https://support.comalatech.com/ so we can help you further, it would be really helpful if you attach your workflow markup.

Kind regards

James
Senior Product Manager

Like piecia likes this
piecia November 15, 2023

Hi @James Conway 

I've stopped using comala workflow. To much effort. I found better solution for my issues.

Thank you for your help and support.

 

Best regards, Piotr

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events