01-30-2015 09:02 PM
java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Integer
execution.setVariable("bpm_workflowPriority", task.priority);
java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Integer
MariaDB [alfresco]> select * from ACT_RU_VARIABLE;
+——-+——+——————–+—————————-+—————+—————+———-+—————+———+—————+————————————————————–+——–+
| ID_ | REV_ | TYPE_ | NAME_ | EXECUTION_ID_ | PROC_INST_ID_ | TASK_ID_ | BYTEARRAY_ID_ | DOUBLE_ | LONG_ | TEXT_ | TEXT2_ |
| 19678 | 1 | double | bpm_workflowPriority | 19601 | 19601 | NULL | NULL | 3 | NULL | NULL | NULL |
10-16-2017 03:27 AM
This is the way I did it:
I made a global variable (e.g. customPriority) and in each task I am setting this one, not the bpm_workflowPriority. Then I read it and set the task.priority.
So the workflow priority stays the same, but I change each task priority according to the customPriority value.
Not the best way to do it, but it works for me...
02-02-2015 07:53 AM
02-02-2015 09:28 PM
10-09-2017 06:45 AM
Hello there!
I am facing the same issue with the bpm_workflowPriority. Did you manage to solve it?
Thanks in advance
10-09-2017 07:24 AM
Hello.
No, that got never fixed, and I simply gave up on doing that.
10-09-2017 08:18 AM
Too bad...
Thanks for the fast reply. I ll post here if I find anything
10-16-2017 03:27 AM
This is the way I did it:
I made a global variable (e.g. customPriority) and in each task I am setting this one, not the bpm_workflowPriority. Then I read it and set the task.priority.
So the workflow priority stays the same, but I change each task priority according to the customPriority value.
Not the best way to do it, but it works for me...
10-16-2017 12:18 PM
I am glad you got it working.
Tags
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.