﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Running a BO process from outside my SF app. ( like a VFP app as com object )</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 18 Apr 2026 13:33:35 GMT</lastBuildDate><ttl>20</ttl><item><title>Running a BO process from outside my SF app. ( like a VFP app as com object )</title><link>http://forum.strataframe.net/FindPost31139.aspx</link><description>If I have an SF C# app connected to SQL Server and there is process in a business object that interacts with other business objects and changes data :&lt;br/&gt;&lt;br/&gt;In my SF UI the interaction of the BOs is done in a winform code.&amp;nbsp; &lt;br/&gt;&lt;br/&gt;The connections are made in the startup of the app.&amp;nbsp; &lt;br/&gt;&lt;br/&gt;How would I call this same BO process from outside of my SF app ( or automatically run my SF app to invoke that process with no UI ) and take advantage of connections and bo interaction etc ?&amp;nbsp; &lt;br/&gt;&lt;br/&gt;The idea is that a backnend process is going to run an SSIS package to get CSV data into a staging table ( one of the bos in my app ) and then bo logic is going to create or update reocords in three other tables based on the new staging records.&amp;nbsp; &lt;br/&gt;&lt;br/&gt;I may also want to pass into the app the id of the staging record batch to process.&lt;br/&gt;&lt;br/&gt;Suggestions greatly appreciated.</description><pubDate>Thu, 19 Apr 2012 11:45:19 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Running a BO process from outside my SF app. ( like a VFP app as com object )</title><link>http://forum.strataframe.net/FindPost31159.aspx</link><description>Great Charles. Come back here if you need anything else.</description><pubDate>Thu, 19 Apr 2012 11:45:19 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Running a BO process from outside my SF app. ( like a VFP app as com object )</title><link>http://forum.strataframe.net/FindPost31157.aspx</link><description>Thanks guys, as soon as I got the idea of console app and BO library into my head ( as well as searching here for the connection info etc) I started to fall into place - except that now management wants me to do it all from within my SSIS package with SPs.&amp;nbsp; Oh well.</description><pubDate>Thu, 19 Apr 2012 10:03:04 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Running a BO process from outside my SF app. ( like a VFP app as com object )</title><link>http://forum.strataframe.net/FindPost31156.aspx</link><description>Greetings, after you call SetDataSources() can call anything you want before that. &amp;nbsp;I still not implemented &amp;nbsp;this but I suppose that this can work....&lt;div&gt;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;For example in c#:&amp;nbsp;you can call the exe with a parameter from a bat if you like, to do this you have to&amp;nbsp;add an "args" string array as a string[] parameter on program.cs (something like that in vb, check creating an application console and check how do it VB)&lt;br/&gt;&lt;br/&gt;&lt;div&gt;in c#&lt;br/&gt;&lt;span style="font-family: Consolas; font-size: 13px; color: blue; "&gt;static&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: Consolas; font-size: 13px; "&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 13px; color: blue; "&gt;void&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: Consolas; font-size: 13px; "&gt;&amp;nbsp;Main(&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 13px; color: blue; "&gt;bstring&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: Consolas; font-size: 13px; "&gt;[]&amp;nbsp;args) &amp;lt;-- this is the starting point of the app, I added string[] args array to receive a parameter with name of the process that wants to execute...&lt;/span&gt;&lt;div&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: small; "&gt;&lt;br/&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: small; "&gt;put the value of args[0] on a static public "callerArgument" property and when StrataFrame event SetDataSources() is called, at the end of this method you can see the&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: small; "&gt;callerArgument property and if it have some string,&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: small; "&gt;&amp;nbsp;call a method that do the processing that you want.&lt;/span&gt;&lt;div&gt;&lt;font color="#000000" face="Consolas" size="2"&gt;&lt;br/&gt;&lt;/font&gt;&lt;div&gt;&lt;span style="font-family: Consolas; "&gt;&lt;font color="#000000" size="2"&gt;after you call your processing method you can call&lt;br/&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 13px; color: rgb(43, 145, 175); "&gt;Environment&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: Consolas; font-size: 13px; "&gt;.Exit(0);&lt;/span&gt;&lt;div&gt;&lt;span style="background-color: white; color: black; font-family: Consolas; font-size: 13px; "&gt;to exit from the exe without do anything more.&lt;/span&gt;&lt;div&gt;&lt;span style="background-color: white; color: black; font-family: Consolas; font-size: 13px; "&gt;&lt;br/&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="background-color: white; color: black; font-family: Consolas; font-size: 13px; "&gt;As Ivan says, it&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; "&gt;too&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: Consolas; font-size: 13px; "&gt;can be accomplished creating another project (can be an console app) and adding the dll references to the BOs library(s) projects/dlls needed.&lt;/span&gt;&lt;div&gt;&lt;font color="#000000" face="Consolas" size="2"&gt;&lt;br/&gt;&lt;/font&gt;</description><pubDate>Thu, 19 Apr 2012 09:48:36 GMT</pubDate><dc:creator>Fabian R Silva, -</dc:creator></item><item><title>RE: Running a BO process from outside my SF app. ( like a VFP app as com object )</title><link>http://forum.strataframe.net/FindPost31140.aspx</link><description>Hi Charles.&lt;br/&gt;&lt;br/&gt;The BOs should be in a library of itself, so you can reference this DLL in as many projects as you need.&lt;br/&gt;The connection string can be shared by many EXEs. Just set the ConnectionManager.ApplicationKey to the same key and they will share the same connection originally set.</description><pubDate>Tue, 17 Apr 2012 17:00:31 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>