Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

130
Views
Mirth originalFilename renombrar

He estado tratando de eliminar .dat de ${originalFilename} en el destino cuando intenté hacer esto ${originalFilename}.txt me dio como 1652807798759.dat.txt ¿cómo puedo obtener 1652807798759.txt solo sin .dat en él?

Intenté hacer esto en Destination's Transformer pero no tuve suerte.

 channelMap.put('OrigFilename', sourceMap.get('originalFilename')); var outFile = channelMap.get('OrigFilename'); logger.info('outFile ' + outFile ); // i am getting outFile as null here //outFile=outFile.replace('.dat','');
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Un reemplazo simple debería funcionar:

 //test it with a static string first, in real code use sourceMap.get('originalFilename').toString(); var outFile = '1652807798759.dat.txt' ; outFile = outFile.replace(/\.dat/g, ""); logger.info('outFile ' + outFile );
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!