Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1410 Galaxy: activity-code not executed if not interactive

v1.8.1
closed-out-of-date
nobody
5
2004-08-26
2004-03-30
Anonymous
No

The code for an activity is not executed if the
activity is not marked as an interactive activity.

Problem:

E.g. if you want to process something automatically
like which branch of the process tree you will follow
the process will break.

Buglocation:

There seems to be a bug in the function
galaxia_execute_activity() which is called at the end
of the lib/Galaxia/src/API/Instance.php - sentTo()
function.

Possible workaround:

As a woraround I replaced the function call by code
similar to that which is used in the
tiki-g-run_activity.php:

// The original function call - inside this function is
the bug
// galaxia_execute_activity($activityId, $iid , 1);
// This code is replaced by some code doing the same thing:

$activityname = $this->getOne("select `normalized_name`
from `".GALAXIA_TABLE_PREFIX."activities` where
`activityId`=?",array((int)$activityId));
$aProcessId = $this->getOne("select `pId` from
`".GALAXIA_TABLE_PREFIX."activities` where
`activityId`=?",array((int)$activityId));
$processname = $this->getOne("select `normalized_name`
from `".GALAXIA_TABLE_PREFIX."processes` where
`pId`=?",array((int)$aProcessId));
$instance = $this;
$source = 'lib/Galaxia/processes/' . $processname .
'/compiled/' . $activityname . '.php';
include_once ($source);

Discussion

  • Logged In: NO

    BUGFIX:

    in lib/Galaxia/config.php go to the function
    galaxia_execute_activity( ... ) and there you will find a line

    $parts[count($parts)-1] =
    "tiki-g-run_activity.php?activityId=$activityId&iid=$iid&auto=$auto";

    now if you replace "&" with "&" that will solve the problem.

     
  • Logged In: YES
    user_id=738765

    The same thing I answered to the forum post :

    Hi, I don't use Galaxia, could you try to fix that replacing by
    $partscount($parts)-1 =
    "tiki-g-run_activity.php?activityId={$activityId}&iid={$iid}&
    amp;auto=$auto";
    instead? It would be cleaner if it works. Note that I used
    ~np~code~/np~ to show above line non-parsed.

     
  • Damian Parker
    Damian Parker
    2004-08-26

    • status: open --> closed-out-of-date