آموزش Workflow – آموزش کار با آرگومان ورودی در Workflow

آموزش Workflow – آموزش کار با آرگومان ورودی در Workflow

با سلام و عرض ادب. در خدمت دوستان عزیز هستیم با آموزش Workflow – آموزش کار با آرگومان ورودی در Workflow از وب سایت آموزش برنامه نویسی سورس باران. در این دوره، آموزش Workflow در ۴۶ جلسه بصورت متنی به شما آموزش داده خواهد شد. در این جلسه قصد داریم سیستم گردش فرمی ایجاد کنیم که هنگام initialize شدن چند آرگومان را بپذیرد. در WF5 با استفاده از InArgument ها می توانیم داده ها را داخل یک اکتیویتی استفاده نماییم.لطفا با ما همراه باشید…

این دوره جهت حفظ حقوق نویسنده از سایت حذف شده، مطالب جدیدتری بزودی در سایت قرار میگیرد

آموزش کار با آرگومان ورودی در Workflow

Greetings and admirable wisdom. We are in the service of our dear friends by working with Workflow Training - Working with Input Argument in Workflow from the Source for Raining Programming Web site. In this course, Workflow training will be provided to you in 46 sessions. In this session, we are going to create a circular flow system that accepts multiple arguments when initializing. In WF5, using InArguments, we can use data in an activity. Please come along with us ...
Work with the input argument in Workflow
The UseInArgument workflow project includes the following four steps

    Create a Project Workflow Console Application
    Create Workflow and Define Input Arguments
    Write C # Codes and set arguments
    Run Workflow

Add a new project from Workflow Console Application
In the Solution Explorer panel, right-click on the Solution Chapter01 and select the ADD option under the New Project menu.
In the Add New Project window, select the workflow option, and then select Workflow Console Application from the right side of the window. Now set the Name field to the UseInArgument value and finally click on the OK button.
Create workflow and define input arguments
Open the Workflow1.xaml file from the Solution Explorerr panel and create Workflow as shown below
To define the argument, click the Arguments tab at the bottom of the Workflow1.xaml window and start defining two arguments named FirstName and SecondName of type String and In.
Write C # Codes and set arguments
But then open the Program.cs file and change the following sub-codes (red part)

using system;
using system.Linq;
using System.Activities;
using System.Activities.Statements;
namespace UseInArgument
{
    class program
    {
        static void Main (string [] args)
        {
            Activity workflow1 = new Workflow1 ()
            {
                FirstName = "Arat"
                SecondName = "Arat Bayat"
            };
            WorkflowInvoker.Invoke (workflow1);
            Console.ReadLine ();
        }
    }
}
Run Workflow

Set the UseInArgument project as a StartUp project and press Ctrl + F5 shortcut to run Workflow. This will save the Workflow and will display the result without debugging. The result is executed in the Windows console and the arguments are displayed
tip!!! In the WF3, we added the feature that we can pass to a workflow in a complex workflow. So in addition to the previous method, the following can be used to set the FirstName and SecondName arguments

using System.Activities;
using System.Activities.Statements;
using System.Collections.Generic;
namespace UseInArgument
{
    class program
    {
        static void Main (string [] args)
        {
            IDictionary <string, object> inputDictionary =
            new Dictionary <string, object> ()
                {
                    {"FirstName", "Arat"},
                    {"SecondName", "Arat Bayat"}
                };
            WorkflowInvoker.Invoke (new Workflow1 (), inputDictionary);
        }
    }
}

be successful and victorious...

 

اصطلاحات گردش کار

گردش کار در تمامی زمینه ها و حوزه ها و صنایع نظیر دانشگاه ها، صنایع بهداشتی و پزشکی، موسسات مالی و اعتباری، بانکها و تمامی سازمان ها و ارگان های دولتی اشاره نمود. به طور معمول در این زمینه اصطلاحاتی به گوشتان می خورند که بهتر است با انها آشنا شوید.

  • مدیریت گردش کار یا Workflow Management: این اصطلاح به معنی مدیریت جریان کار در سازمان یا ارگان می باشد و به این معنی است که کار باید در زمان مناسب انجام شود. در حقیقت وظیفه اصلی این بخش ارسال کارهای روزانه سازمان به اشخاص مناسب به هنگام مشخص می باشد و می توان آن را پیگیری نمود.
  • سیستم گردش کار یا Workflow System: این سیستم در واقع حمایت کننده و پشتیبان گروهی از فرآیندهای کسب و کار می باشد و تعریف شدن و ساخته شدن آن به وسیله فرآیندهای رایانه ای انجام می شود.
  • موتور گردش کار یا Workflow Engine: هر سیستم گردش کاری تشکیل شده از چندین موتور می باشد که در دست گیرنده بخشی یا کلی از سیستم کنترل گردش کاری را به دست دارد.

گردش کارها به طور کلی به سه دسته تقسیم می شوند که عبارتند از:

  • ترتیبی: در این مدل امکان برگشت به مراحل قبلی وجود نخواهد داشت.
  • سیستمی: این گردش کار ها پیچیده تر می باشند و قابلیت برگشت پذیری به گاه ها و مراحل قبلی را دارند.
  • مبتنی بر قوانین: تنها تفاوت این دسته با دسته ترتیبی در این می باشد که پیشرفت در فرایند به وسیله قوانین تعیین می گردند.

منابع : Introduction-to-workflows

bpm-tutorial/workflow-tutorial

Workflow_Fundamentals

what-is-workflow

به این مطلب امتیاز دهید post

راستی! برای دریافت مطالب جدید در کانال تلگرام یا پیج اینستاگرام سورس باران عضو شوید.

دوره حرفه ای انیمیشن سازی دو بعدی شبیه دیرین دیرین در Moho12

دسته بندی موضوعات

آخرین محصولات فروشگاه

مشاهده همه

نظرات

بازخوردهای خود را برای ما ارسال کنید

این سایت از اکیسمت برای کاهش هرزنامه استفاده می کند. بیاموزید که چگونه اطلاعات دیدگاه های شما پردازش می‌شوند.