Forums › Forums › OroPlatform › OroPlatform – How do I? Questions › How to create a sales process automatically when a new Lead is added?
This topic contains 19 replies, has 4 voices, and was last updated by achyuthb 7 years, 11 months ago.
Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
- CreatorTopic
- May 21, 2015 at 1:24 pm #35981
How to create a sales process automatically when a new Lead is added?
If I understood well, I can’t do that just cloning and changing the workflow process right?
I have two ideas:
—
1) Create a Process to do that;
2) Use the API to create a Sales Process based on a Lead. I can detect when this event happens because I’m saving these Leads with my integration api;Do you guys have other idea?
Thank you - CreatorTopic
- AuthorReplies
- May 4, 2016 at 6:08 am #35997
Look’s like you’ve created a custom workflow and forgot to specify label in one of the sections (probably, attributes or transitions). You need to find out the source of this issue (e.g. running of command “php app/console oro:workflow:definitions:load -v” should show stack trace to the code that causes this exception), fix it and then do install again.
See documentation about workflow configuration and working example of workflow configuration.
May 4, 2016 at 11:14 pm #35998Hi,
I didn’t create any custom workflow, Any ways i follow your suggestions and getting exception at
Exception trace:
() at F:\xampp\htdocs\orocrm\vendor\oro\platform\src\Oro\Bundle\WorkflowBundle\
Model\AbstractAssembler.php:94
Oro\Bundle\WorkflowBundle\Model\AbstractAssembler->assertOptions() at F:\xampp\
htdocs\orocrm\vendor\oro\platform\src\Oro\Bundle\WorkflowBundle\Model\AttributeA
ssembler.php:65How can i fix? Could you please help me i am unable find labels.
May 5, 2016 at 2:56 am #35999If you didn’t create custom workflow – it should be installed without errors from scratch – probably, something is wrong either with files, of with metadata. The easiest solution – get the latest stable version and try install it from scratch on empty DB.
If this will not help – you should check which field in which entity triggers this error, see Oro\Bundle\WorkflowBundle\Model\AttributeAssembler.php, line 65.
May 10, 2016 at 8:45 am #36000Hi,
I am still getting same problem, even with new fresh installation and new DB, Please hell us.
[2016-05-10 17:19:57] Launching “cache:clear” command
Clearing the cache for the prod environment with debug falseCommand “cache:clear” executed in 115 second(s), memory usage: 40.63Mb
[2016-05-10 17:22:33] Launching “oro:migration:load” command
Process migrations…
> Oro\Bundle\EntityExtendBundle\Migration\LoadEntityConfigStateMigration
> Oro\Bundle\MigrationBundle\Migration\CreateMigrationTableMigration
> Oro\Bundle\PlatformBundle\Migrations\Schema\OroPlatformBundleInstaller
> Oro\Bundle\OrganizationBundle\Migrations\Schema\OroOrganizationBundleInstaller
> Oro\Bundle\SecurityBundle\Migrations\Schema\OroSecurityBundleInstaller
> Oro\Bundle\AttachmentBundle\Migrations\Schema\OroAttachmentBundleInstaller
> Oro\Bundle\EmailBundle\Migrations\Schema\OroEmailBundleInstaller
> Oro\Bundle\CronBundle\Migrations\Schema\OroCronBundleInstaller
> Oro\Bundle\UserBundle\Migrations\Schema\OroUserBundleInstaller
> Oro\Bundle\SSOBundle\Migrations\Schema\OroUserBundleInstaller
> Oro\Bundle\EntityConfigBundle\Migrations\Schema\OroEntityConfigBundleInstaller
> Oro\Bundle\EntityExtendBundle\Migrations\Schema\OroEntityExtendBundleInstaller
> Oro\Bundle\IntegrationBundle\Migrations\Schema\OroIntegrationBundleInstaller
> Oro\Bundle\ActivityBundle\Migrations\Schema\OroActivityBundleInstaller
> Oro\Bundle\ActivityListBundle\Migrations\Schema\OroActivityListBundleInstaller
> Oro\Bundle\AddressBundle\Migrations\Schema\OroAddressBundleInstaller
> Oro\Bundle\BatchBundle\Migrations\Schema\OroBatchBundleInstaller
> Oro\Bundle\CalendarBundle\Migrations\Schema\OroCalendarBundleInstaller
> Oro\Bundle\ConfigBundle\Migrations\Schema\OroConfigBundleInstaller
> Oro\Bundle\DataAuditBundle\Migrations\Schema\OroDataAuditBundleInstaller
> Oro\Bundle\DataGridBundle\Migrations\Schema\OroDataGridBundleInstaller
> Oro\Bundle\EmbeddedFormBundle\Migrations\Schema\OroEmbeddedFormBundleInstaller
> Oro\Bundle\ImapBundle\Migrations\Schema\OroImapBundleInstaller
> Oro\Bundle\InstallerBundle\Migrations\Schema\OroInstallerBundleInstaller
> Oro\Bundle\MigrationBundle\Migrations\Schema\OroMigrationBundleInstaller
> Oro\Bundle\NoteBundle\Migrations\Schema\OroNoteBundleInstaller
> Oro\Bundle\NotificationBundle\Migrations\Schema\OroNotificationBundleInstaller
> Oro\Bundle\ReportBundle\Migrations\Schema\OroReportBundleInstaller
> Oro\Bundle\SearchBundle\Migrations\Schema\OroSearchBundleInstaller
> Oro\Bundle\SegmentBundle\Migrations\Schema\OroSegmentBundleInstaller
> Oro\Bundle\SidebarBundle\Migrations\Schema\OroSidebarBundleInstaller
> Oro\Bundle\TagBundle\Migrations\Schema\OroTagBundleInstaller
> Oro\Bundle\TranslationBundle\Migrations\Schema\OroTranslationBundleInstaller
> Oro\Bundle\WindowsBundle\Migrations\Schema\OroWindowsBundleInstaller
> Oro\Bundle\WorkflowBundle\Migrations\Schema\OroWorkflowBundleInstaller
> Oro\Bundle\CommentBundle\Migrations\Schema\OroCommentBundleInstaller
> Oro\Bundle\DashboardBundle\Migrations\Schema\OroDashboardBundleInstaller
> Oro\Bundle\NavigationBundle\Migrations\Schema\OroNavigationBundleInstaller
> OroCRM\Bundle\ContactBundle\Migrations\Schema\OroCRMContactBundleInstaller
> OroCRM\Bundle\AccountBundle\Migrations\Schema\OroCRMAccountBundleInstaller
> OroCRM\Bundle\MarketingListBundle\Migrations\Schema\OroCRMMarketingListBundleInstaller
> Oro\Bundle\TrackingBundle\Migrations\Schema\OroTrackingBundleInstaller
> Oro\Bundle\ReminderBundle\Migrations\Schema\OroReminderBundleBundleInstaller
> OroCRM\Bundle\CallBundle\Migrations\Schema\OroCRMCallBundleInstaller
> OroCRM\Bundle\CampaignBundle\Migrations\Schema\OroCRMCampaignBundleInstaller
> OroCRM\Bundle\ChannelBundle\Migrations\Schema\OroCRMChannelBundleInstaller
> OroCRM\Bundle\TaskBundle\Migrations\Schema\OroCRMTaskBundleInstaller
> OroCRM\Bundle\AnalyticsBundle\Migrations\Schema\OroCRMAnalyticsBundleInstaller
> OroCRM\Bundle\SalesBundle\Migrations\Schema\OroCRMSalesBundleInstaller[2016-05-10 17:32:40] Launching “oro:workflow:definitions:load” command
Loading workflow definitions…[Oro\Bundle\WorkflowBundle\Exception\AssemblerException]
Option “label” is requiredoro:workflow:definitions:load [–directories [DIRECTORIES]] [–workflows [WORKFLOWS]] [-h|–help] [-q|–quiet] [-v|vv|vvv|–verbose] [-V|–version] [–ansi] [–no-ansi] [-n|–no-interaction] [-s|–shell] [–process-isolation] [-e|–env ENV] [–no-debug] [–disabled-listeners DISABLED-LISTENERS] [–] <command>
Command “oro:workflow:definitions:load” executed in 5 second(s), memory usage: 9.12Mb
- AuthorReplies
The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.