Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
WFconstructor doc ?
cc96ai
where can i get more information about TeamSite::WFconstructor
i did on perldoc TeamSite::WFconstructor
--------------------------------------------
TS 6.1 W2K3
OpenDeploy 6.0
CC Pro/Std
Find more posts tagged with
Comments
iwovGraduate
perldoc TeamSite::WFconstructor should give you enough documentation to be able to use it. What more are you looking for ?
If you have specific questions post them accordingly.
cc96ai
i got "Internal Server Error"
[Wed Apr 06 16:28:05 2005] [error] [client 142.214.17.17] malformed header from script. Bad header=<?xml version="1.0" standalone: e:/iw-home/httpd/iw-bin/iwwft_instantiator.cgi
from log file from iw-webd/logs/error.log
<template_script><![CDATA[
TAG_info(
iw_desc =>
[ html => "<textarea rows='5' cols='40'></textarea>",
label => "Job Description",
error_msg => 'Please enter a description',
],
);
use TeamSite::WFconstructor;
my $iw_user = __VALUE__('iw_user');
my $iw_branch = __VALUE__('iw_branch');
my $iw_workarea = __VALUE__('iw_workarea');
declare_workflow(name => "My Job",
owner => $iw_user,
creator => $iw_user,
description => "TEst",
comment => "This is a test of WFconstructor",
);
set_job_variable("favorite_color", "green");
declare_task("something",
name => "Some Thing",
description => "Do as I mean, not as I say",
type => "usertask",
start => TRUE,
owner => $iw_user,
areavpath => $iw_workarea );
set_task_variable("something", "priority", "Urgent");
declare_task("end",
name => "The End",
type => "endtask");
# Have a "Done" transition from "something" to "end".
link_tasks("something", "end", "Done");
propagate_from_dormant_tasks();
compute_activation_sets();
# Et voila, here's our XML.
print get_job_spec() ;
my $logfile = "e:\\iw-home\\logs\\xml.log";
&log( get_job_spec() );
sub log {
my $message = shift;
open (LOG, ">>$logfile");
print LOG "$message\n";
close LOG;
}
]]></template_script>
--------------------------------
and I check my log file which have full XML
<?xml version="1.0" standalone="no"?>
<!DOCTYPE workflow SYSTEM "iwwf.dtd">
<workflow name="My Job" owner="xxxl" creator="xxxx" description="Take me out to the ballgame">
............
--------------------------------------------
TS 6.1 W2K3
OpenDeploy 6.0
CC Pro/Std
cc96ai
I try to change
print ( get_job_spec() );
to be
__INSERT__(get_job_spec());
I dont have any error message on error.log
but i got other pop up error msg
Invalid workflow:
xml processing instruction not at start of external entity at line 2
ERROR: 00001: Failure in operation.
--------------------------------------------
TS 6.1 W2K3
OpenDeploy 6.0
CC Pro/Std
iwovGraduate
What are you trying to do ?
Why do you have that print statement ?
Perhaps you wanted it to be
print LOG ....
or something along those lines ?
Did you have a working code that you are trying to modify ? Writing something from scratch ?
cc96ai
i removed the blank line in the top.
fixed the problem
--------------------------------------------
TS 6.1 W2K3
OpenDeploy 6.0
CC Pro/Std
cc96ai
I am trying to do something from scratch
I used "print" becuase I copy the sample from perldoc.
--------------------------------------------
TS 6.1 W2K3
OpenDeploy 6.0
CC Pro/Std