How can I convert FlowChart to PHP Code and vise versa in Enterprise Architect? - enterprise-architect

I'am new to Enterprise Architect, and I need to know if EA supports converting flowchart to php code and vise versa?, and if it doesn't are there any alternatives?

Furqan.
Here is a link to the Sparx web page on generating code from behavioral models.
http://www.sparxsystems.com/enterprise_architect_user_guide/9.3/software_engineering/code_generation_from_behaviora.html
EA includes native support for PHP (see under Tools | Options | Source Code Engineering). The nearest thing to a traditional flowchart in EA is the Activity Diagram. You could try creating an Activity Diagram then use the information on the Sparx web page to generate PHP from that. Good luck.

I have Found this tool which convert Flow Chart to pseudo code, and export pseudo code to multiple languages, but it Does not support PHP.
and the other tool is converting code to Flowchart

You can do that with PSeint, (you work with pseudocode that then translates to php), it's free but in spanish, unfortunately.
http://pseint.sourceforge.net/

Related

How to implement Tao core PHP LTI 1.3 in my tool?

I am new in LTI 1.3 - tao ,so for me this a bit hard to understand how to embed this library into my tool. I also want to understand the code workflow and structure. For LMS, I am using Moodle .
If is there any example code available for this library (https://github.com/oat-sa/lib-lti1p3-core)? My Tool based on PHP Codeigniter, if available for demo purpose, can someone please share me?
I already installed the core library using composer and configured the basic configuration such as keychain, platform details, tool details. Now in registration, I am having some problem.
If you want to access a LTI tool from Moodle, then there is an existing activity called "External Tool" - no development is required
Go to a course, switch on editing, add an activity and select external tool
The rest is explained here
https://docs.moodle.org/401/en/External_tool

List all stereotypes in code template

Is there any way to list all class stereotypes in an Enterprise Architect code template? %classStereotype% only gives me the first one.
There is none. Sparx help lists nothing useful. What you "could" do is to write an add-in and call it via EXEC_ADDIN as described in this part of EA's help.

Scala - Template based run time code generation

I am looking for a good template based run-time code generation library in Scala. I need this for my ERP system to generate artifacts (html, and other code files)
Can any please point me in right direction?
You should take a look at Scalate. It has multiple syntax choices and if you use SSP you can easily create templates for text other than HTML as well.
If your app is web-based, Play has a templating system for generating the output pages.

Reverse engineering in Bouml for php project

My php project using Zend framework. i want to generate class diagram for that php(zendframwork). i try to generate class diagram using Bouml project.
I go through this link Boumal java reverse engineering video
but problem is when i drag and drop every php class but that don't show relationship between class
You could give UML Lab (http://uml-lab.com) a try (Note: I'm biased as I'm working for Yatta Solutions ;) ). There is a tutorial explaining how to reverse engineer existing source code: http://www.uml-lab.com/en/uml-lab/tutorials/reverse-engineering-tutorial/. Basically, just create a new Model and Class Diagram and all available PHP source files are imported automatically. Otherwise you can import a PHP file by dragging it onto the diagram editor.
The tool supports Java and PHP, and has build-in support for Zend Framework. It may not understand each PHP source file - but files containing a class should work fine. If there is something the tool doesn't understand you'll be notified and can directly file a bug.
It's a commercial tool, but there is a 30 days trial and a free academic edition. If you have any questions don't hesitate asking them in the forum, bug tracker or by mail.
each time you add a class in a class diagram the relations with the already present classes are shown, except of course if you modified the "drawing settings" to not draw automatically the relations.
but this supposes there are relations to draw ;-)
Php is a not typed language, so the reverse can only create inheritances, the types of the attributes are unknown contrarily to C++ or Java

How to automate Lightswitch for metaprogramming

I really like the Ria Services approach, and I see Lightswitch as the next higher level of abstraction, but my scenario is this:
I need to be able to define a Lighswitch app without having to rely on the designer and tedious click-throughs. If I have access to the API that the designer uses, then I can automate application generation, I can parameterize it and apply custome logic for generating custom variations of the same application type, I can even wrap it within a DSL. As a programmer, I want to levarge Lightswitch for developing applications by meta-programming.
I'm a programmer. Whilest I can use the "Write Code" dropdown to insert code blocks into the Application, ApplicationDataService, EntityObject and ScreenObject classes, I would like the ability to define entites, screens, relationships and queries through code / markup / a DSL.
Obviously Lightswitch meta-programs this when I use the designer, but I would like to do it myself. What I would like to accomplish is to create a lightswitch app - without having to click through a tool or designer. In Lightswitch, the pieces are obviously there (the designer leverages them), but they are not exposed as a public API. being a plugin for visual studio, perhaps there is a VSIX API extension I can leverage for automating Lightswitch? Show me some code.
The LS team have not yet released any official API information. As you may know however, all of various data/query/screen definitions exist in the ApplicationDefinition.lsml file, located in the LS project's "Data" folder.
I would hope that API information will be made available once the RTM has been released.
Yann