--- In informaticadevelopment%40yahoogroups.com">informaticadevelopment
yahoogroups.com, "Nico Heinze"
<grollnar
...> wrote:
>
> --- In informaticadevelopment%40yahoogroups.com">informaticadevelopment
yahoogroups.com, "globalitconsult"
> <globalitconsult
> wrote:
> >
> > Hi everybody,
> >
> > I'm trying to launch workflows and sessions via command line
> > pmcmd within a DOS batch file. My database is a SQL-Server.
> >
> > For a session, I have to indicate in the pmcmd the workflow
> > associated. I would like to not indicate the workflow,
> > just with the name of the session as input parameter
> <snip>
>
> I beg your pardon, but in my opinion this is not a safe approach.
You
> cannot ensure that the name of a session instance is unique across
a
> folder, let alone across a whole repository. So why do you insist
on
> using a query to retrieve the workflow name first? To me this looks
> like a possible cause of trouble in the long run.
>
> Despite that, what you can do is to build a "controlling" workflow
to
> which you provide the name of the session to execute as a
parameter;
> this workflow would first retrieve the name of all workflows from
the
> repository (using one of the metadata exchange views) and then
build a
> "pmcmd" invokation script which is then executed as a post-session
> command.
>
> Regards,
> Nico
>
Hi,
Thanks for your response.
I succeeded. Although a session name is used by many workflows, the
purpose of this session is the same so if a session is used by many
workflows. I take the first folder/workflow returned by the SQL
request.
It's very basic, I need to launch a session via pmcmd command by
using a DOS batch file which receives the session name as the sole
input parameter. For me using an additional workflow is too heavy.
Regards,
Abdul-Salam
.