cancel
Showing results for 
Search instead for 
Did you mean: 

Use translator in Workflow

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hello,

 

I have created a translator with the dispather to translate odt or ods in PDF (the translator is working well):

Translator.png

 

Now I would like to have an automatic translation in a workflow:

1. I send a DocumentRevision (with odt dataset) in a workflow

2. I validate a review task

3. The workflow translate the odt on PDF and add the PDF in my Document Revision

4. Add status on the PDF dataset

 

Wich handler can I use to do that ?

 

Best regards,

10 REPLIES

Re: Use translator in Workflow

Phenom
Phenom
You can use one of these handlers: TSTK-CreateTranslationRequest , DOCMGT-render-document-revision

Re: Use translator in Workflow

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hi,

 

Thank you for your quick answer.

I don't know how this handler is working, maybe could you help me ?

 

I try the TSTK-CreateTranslationRequest but I have 2 issues:

- I have that error message

The error messageThe error messageThe handler with argument I usedThe handler with argument I used

- In the dosumentatation I can see arguments DatasetTypeName : Specifies the dataset name for the selected workflow and item revision. Custom types cannot be specified 

 

 

Do you have any idea of what I could do ?

 

Best regards,

Re: Use translator in Workflow

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Hi,

 

the first argument should be -ProviderName matching the value in the dispatcher conf files.

Your screen grab shows a missing 'r' in the argument (-ProvideName).

 

 

Harish

 

Re: Use translator in Workflow

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Effectively I forgot the "r". now the workflow is working but the translate isn't complete. I can see on the administration translation console --> Terminal and not Complete.

The PDF is not generated. Manually I don't have the problem.

 

Do you have any idea ?

Re: Use translator in Workflow

Phenom
Phenom
Did you check the dispatcher client task logs ?

Re: Use translator in Workflow

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hello,

 

Effectively I have an error:

 

2017-03-24 14:53:56,997 INFO  - Begin Extract of Request Uda8d2178458d524ec23ax
2017-03-24 14:53:59,290 INFO  - Validating Request
2017-03-24 14:53:59,361 ERROR - Cannot find task preparation class specified by service configuration for Siemens libreofficetopdf (null)
java.lang.Exception: Cannot find task preparation class specified by service configuration for Siemens libreofficetopdf (null)
    at com.teamcenter.ets.extract.Extractor.getTaskPrep(Extractor.java:733)
    at com.teamcenter.ets.extract.Extractor.processRequest(Extractor.java:406)
    at com.teamcenter.ets.extract.Extractor.start(Extractor.java:318)
    at com.teamcenter.ets.extract.Extractor.<init>(Extractor.java:266)
    at com.teamcenter.ets.ServiceMode.startService(ServiceMode.java:67)
    at com.teamcenter.ets.ServiceMode.main(ServiceMode.java:256)
2017-03-24 14:53:59,407 DEBUG - Task Uda8d2178458d524ec23ax updated from PREPARING to TERMINAL

 

I don't anderstand why I don't have this problem when i do the translate manualy.

 

Do you have any idea ?

 

Best regards,

Re: Use translator in Workflow

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Hello,

 

Can you check if libreofficetopdf (jar) is specified in the path (dispatcher client/bin batch files)?

 

Harish

 

Re: Use translator in Workflow

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hi,

I didn't create any custom java class.

 

I use standard classes and I set through Teamcenter preferences information which has to be exported and imported.

 

this is running well manually.

Do you thing this is a problem for a use through the dispatcher ?

 

Regards,

 

 

Re: Use translator in Workflow

Phenom
Phenom
I don't know if it's case sensitive, but just give a try by entering provider name in caps i.e. SIEMENS.

If that does not work, try adding the class name properties in Service.Properties might help

Translator.<ProviderName>.<TranslatorName>.Prepare=com.teamcenter.ets.translator.ugs.basic.TaskPrep
Translator.<ProviderName>.<TranslatorName>.Load=com.teamcenter.ets.translator.ugs.basic.DatabaseOperation