OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions Workflow post_actions multiples

This topic contains 5 replies, has 2 voices, and was last updated by  Mike Kudelya 7 years, 6 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #34272

    Geoffroy Cochard
    Participant

    Hi,

    I’m using OroPlatform 1.10.5 to perform some workflows. In one of my transition definitions, many post_actions are defined, like this :

    In my custom action @send_email_validated, it very similar to @send_email_template but with an attachment assignment, file generated through ImportExport service like this :

    When i use ImportExport service in my custom post_actions,@assign_value and transit don’t seem executed (no database update) and when i don’t use ImportExport->handler service transition work.
    Is something in ImportExport->handler() service like manager->flush / clear, getting wrong in post_action execution ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #34273

    Geoffroy Cochard
    Participant

    In fact if i get Doctrine UnitOfWork before call exportHandler(), there’s Workflow*Entities in identityMap and after there’re disappear…

    #34274

    Geoffroy Cochard
    Participant

    Ok…

    Manager is cleared when use XlsWriter / CsvWriter due to call DoctrineClearWriter who clear DoctrineManager after writing…

    It’s clearing / detach each item due to performance ?

    #34275

    Mike Kudelya
    Participant

    Hi,

    Probably yes, here is an example how doctrine works with batches. If you really need work with import inside workflow, i think you need override XlsxFileWriter::write function and delete DoctrineClearWriter’s call. What is wrong with your transition, system doesn’t go to next step ?

    #34276

    Geoffroy Cochard
    Participant

    Hi,

    Right, system doesn’t go to next step cause current DoctrineManager is clearing by DoctrineClerWriter. StepId is not updated, etc…

    Geoffroy

    #34277

    Mike Kudelya
    Participant

    Hi,

    I think you should create getConfig function in our XlsxFileWriter, add appropriate option to $option when you call $this->exportHandler->getExportResult and check it.

Viewing 5 replies - 1 through 5 (of 5 total)

The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.

Back to top