ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 5 replies, has 2 voices, and was last updated by Mike Kudelya Mike Kudelya 1 year, 1 month ago.

  • Creator
    Topic
  • #23161

    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
  • #23163

    Geoffroy Cochard
    Participant

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

    #23165

    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 ?

    #23210
    Mike Kudelya
    Mike Kudelya
    Oro Core

    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 ?

    #23500

    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

    #23503
    Mike Kudelya
    Mike Kudelya
    Oro Core

    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)

You must be logged in to reply to this topic.