Loading...
 
Galaxia Workflow Engine

Galaxia Workflow Engine


Re: Re: Let's talk about Galaxia

Brazil

I guess I found a BUG in tikiwiki/lib/Galaxia/src/ProcessManager/GraphViz.php.
Running on Windows, actually. My environment: Apache 1.3.27, PHP 4.3.11, MySQL 4.1.11, TikiWiki 1.8.5, Graphviz 2.2.1.
The bug prevents Graphviz from generating new graph files after modifying something in a process, e.g. an activity.
The root cause of the problem is that on Windows folder names can have spaces. My Apache root folder, for example, is C:/Arquivos de programas/Apache Group/Apache.
To make matters worse, Graphviz is installed in the C:\Arquivos de programas\ATT\Graphviz folder.
This led to the following command line getting cooked by Galaxia:

C:/Arquivos de programas/ATT/Graphviz/bin/dot -Tpng -o c:\arquivos de programas\apache group\apache\htdocs\tikiwiki\lib\Galaxia/processes/Ferias_10/graph/Ferias_10.png c:\arquivos de programas\apache group\apache\htdocs\tikiwiki\lib\Galaxia/processes/Ferias_10/graph/Ferias_10

I got the following error:
Error: dot: can't open c:\arquivos
Error: dot: can't open de
Error: dot: can't open programas\apache
Error: dot: can't open group\apache\htdocs\tikiwiki\lib\Galaxia/processes/Ferias_10/graph/Ferias_10

All because there are space characters mixing the external command and its parameters. I changed the image_and_map function in GraphViz.php and now it looks like this:

function image_and_map($format = 'png') {
if ($file = $this->saveParsedGraph()) {
$outputfile = $file . '.' . $format;
$outputfile = '"'. $outputfile . '"'; //Georger

$outputfile2 = $file . '.' . 'map';
if(!isset($this->graph'directed')) $this->graph'directed'=true;
$command = $this->graph'directed' ? $this->dotCommand : $this->neatoCommand;
$command = '"'. $command . '"'; //Georger
$file = '"'. $file . '"'; //Georger
$command .= " -T$format -o $outputfile $file";

@`$command`;

$command = $this->dotCommand;
$command.= " -Tcmap -o $outputfile2 $file";
@`$command`;
@unlink($file);
return true;
}
}

Now my command line is like this:

"C:/Arquivos de programas/ATT/Graphviz/bin/dot" -Tpng -o "c:\arquivos de programas\apache group\apache\htdocs\tikiwiki\lib\Galaxia/processes/Ferias_10/graph/Ferias_10.png" "c:\arquivos de programas\apache group\apache\htdocs\tikiwiki\lib\Galaxia/processes/Ferias_10/graph/Ferias_10"

And my graphs show up fine biggrin
Please consider merging this in the official source tree. I suppose there are more people out there running TikiWiki on Windows with spaces in their folder names. Regards,

Georger

> Hi,
> I have been requested to seek and implement an open source workflow solution at my company. I looked at some Java-based solutions, but they're either too complex, or too heavy, or too incomplete.
>
> I thought I had finally gotten somewhere when I stumbled upon JaWE2Openflow (http://www.cignex.com/site/OpenSource/jawe2openflow/index_html). It's a solution based on Zope/Plone, OpenFlow (the same open source workflow engine on which Galaxia is based) and JaWE (a VERY GOOD WfMC-compliant worflow process editor, DEFINITELY worth looking at). It was simpler, lighter and more standards-compliant than other solutions, but unfortunately didn't prove flexible enough for my needs. As I'm not a Zope expert, it could be my lack of knowledge, but I'm largely confident it's not the case.
>
> And now I've finally found and tried Galaxia on Tiki 1.9. I was impressed with it, but couldn't get it to generate graphs, so now I'm downloading 1.8.5 to see if it's a bug introduced with the new release.
> I have yet to find if it's what my company is seeking, but from what I've saw from my 1.9 deployment and the documentation, it might be just what I'm looking for - with the added benefit of being LAMP-based.
>
> I'll let you know as it develops. Great work!
>
> Georger
>
> > Hello,
> >
> > This forum is intended to become the central hub for all Galaxia related discussions. Galaxia is used in Tiki but also in several other leading PHP CMSs or groupwares.
> >
> > Until now, all Galaxia users/developers have worked in isolation (sort of). So let's get all the action here below!
> >
> > Please use the watch feature to receive a notice of new posts.
> >
> > Thanks!
> >
> > M ;-)

There are no comments at this time.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting