Hi,

Actually this can be done. Although there are architectural changes being made that will make a number of thing easier they're not required for this.

You can set the model path in code before running the Gendoc2 process:

IContextService contextService = GendocServices.INSTANCE.getService(ServiceRegistryEnum.CONTEXT);
contextService.setModel(modelPath);
GendocProcess gendocProcess = new GendocProcess();
String outputPath = gendocProcess.runProcess(templatePath);

Note - for the next release of Gendoc2 the code to retrieve the context service will be:

IContextService contextService = GendocServices.getDefault().getService(IContextService.class);

Regards,

Kris Robertson

Le 17/08/2010 17:13, Topcased user list where issues are discussed a écrit :
  Hi
in the current development version we have made architecture evolutions
which allows developers to use specific services instead of Standard.
The feature request is here :
http://gforge.enseeiht.fr/tracker/?func=detail&group_id=52&aid=3311&atid=133

It's still not documentated but you can provide a new implementation of
the context or configuration service to retrieve a model selected by the
user

Regards
Tristan FAURE

Le 21/07/2010 08:40, Topcased user list where issues are discussed a
écrit :
 Hi !
It's not yet possible to specify these options through API.

But it will be available soon. Probably in the next release of Gendoc2

Regards
Tristan FAURE

Le 20/07/2010 16:19, Topcased user list where issues are discussed a
écrit :
Hi all,

Using the Gendoc2 component, I try to make my own document generation
plug-in
that embed the document template. A specific UI will be provided to
the user to
select against which model to generate its document.

Is there a way to call the document generation through API?

The common approach is to provide the model path on the document
template
through the "context" tag, like following:<context
model='my/model/path' … />
Is it possible to provide this model path by API instead of hard
written in
the document template?

Regards,

Florian Barbin
Obeo

_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users


_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users


_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

--
-----------------------------------------------
Kris ROBERTSON
Atos Origin
6 Impasse Alice Guy
31024 Toulouse Cedex 03

Bureau   : 05.34.36.37.38
Télécopie: 05.34.36.31.00

mailto :[email protected]

=======================================================================
Ce  message  electronique  est  confidentiel.   Il  peut  contenir  des
informations  protegees  par  le  secret  professionnel,  le  secret de
fabrication ou  autres regles legales.  Si vous recevez ce message  par
erreur,  il vous est interdit  de le reproduire  ou de le distribuer en
tout ou en partie,  ou de le divulguer de quelque maniere que ce soit a
quelque  personne  que ce soit.  Nous vous prions  de bien  vouloir  en
informer  Atos Origin,  par telephone  ou par retour  d'e-mail  puis de
detruire le message et toutes copies de votre systeme informatique.  Le
contenu  de ce message  ne reflete pas  necessairement  ni les opinions
d'Atos Origin  ni celle des membres de son groupe.  Bien que l'emetteur
de ce message  ait fait  tout son possible  pour maintenir  son systeme
informatique sans virus,  il ne peut garantir que cette transmission ne
comporte  aucun virus  et il ne pourra  etre tenu  pour responsable  de
quelque dommage que ce soit resultant de la transmission d'un virus.
=======================================================================
This   electronic  transmission   is  confidential.   It  may   contain
information  that  is  covered  by legal professional  privilege,  work
product  immunity  or other  legal rules.  If  you have  received  this
transmission in error,  you must not copy or distribute this message or
any part  of it  or otherwise disclose  its contents to anyone.  Please
notify  Atos Origin Legal Services  by telephone or return E-mail,  and
then delete this transmission  and any copies of it  from your computer
system.  The views  expressed  in this  electronic transmission  do not
necessarily reflect those of Atos Origin SA or any member of its group.
Although  the sender  endeavours  to  maintain  a computer  virus  free
network,  the sender  does not warrant  that this transmission is virus
free  and will not be liable  for any damages resulting  from any virus
transmitted.
=======================================================================

_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

Reply via email to