Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


michaelhum
2018-05-14T21:13:09Z
Hi,
Can you confirm if this is the expected result or this is a bug.
When I use the function, clone to make a copy of a VisualCron job onto the same machine, the cloned Job ID and Task IDs change. This is what I expect. However, any defined Job variables in the cloned job do not change. Is this a bug?

Example
Job "A". The Job ID is c47b5864-fa22-4406-9c4c-7293835ce8ad
Consists of a Task named "write file". The task ID is 333aff33-a9b7-441e-a2f5-0500a1916416
I defined a job variable named fileOutput . I set the value to {TASK(333aff33-a9b7-441e-a2f5-0500a1916416|StdOut)}

When I clone Job "A" (renamed to Job "A1")
Job "A1". The Job ID changes
Task named "write file". The task ID changes
Job variable named fileOutput . The value is still {TASK(333aff33-a9b7-441e-a2f5-0500a1916416|StdOut)} Shouldn't this value automatically adjust to the new clone task values? I have to manually edit the fileOput variable to correct the value. Is this a bug?



Sponsor
Forum information
Gary_W
2018-05-15T13:21:11Z
That is the action we are used to. It would be nice to have an option to "update tasks ID's" when copying/cloning. There is a "feature request" forum where you can request this.

Try to use the "shorthands" of Active or PrevTask where possible and avoid the direct ID's to avoid this problem:
{TASK(Active|StdOut)}
{TASK(PrevTask|StdOut)}
Scroll to Top