java workflow system - to perform a custom URL

Keywords: workflow platform for rapid development of workflow business process management workflow design asp.net open source workflow bpm workflow system java workflow framework mainstream custom workflow engine

 

Overview:

When users express their own business logic, often written in the code relatively smoothly, under such conditions apply, you can write a different tag url passed to this url, returns different results, returns an empty expressed smoothly.

Example: Set a http in the implementation of content in: //myserver/Do.aspx DoType = aaaaa, create a Do.aspx process according to DoType mark this different content?.

If the smooth handling of the return air, abnormal must return: Error + "anomalies."

The process returns value: this.Response.Write ( "Error:" + msg); method.

Ccform processing mechanism is to use the HttpWebRequest class silent execution URL, and then get returned content. If you check the first few characters Error is considered to be abnormal ccform will throw an exception.

System parameters:

url you define such as /App/DoUrl.aspx?ABC=123, the system will then add some parameters, these parameters are called system parameters. url for the actual implementation.

http://yourserver/App/DoUrl.aspx?ABC=123&UserNo=xy&SID=xxxxx&FK_Dept=1010&FK_Unit=10&EntityName=ND101&EntityPK=OID&EntityPKVal=12333&FK_Event=xxxxxx

Behind the extra parameters are system parameters, system parameters meaning:

parameter name

Chinese name

use

UserNo

The current user ID

 

SID

Security code

According sid and userno security check can be accessed, about what is SID, please refer to other articles.

FK_Dept

Current Operator ID

 

FK_Unit

The operator unit number

 

EntityName

No current entity

The current name of the entity

EntityPK

Entity primary key

Entity's primary key, mostly OID

EntityPKVal

Primary key

Primary key of the entity, the entity through which other information can be obtained.

FK_Event

Event ID

Other information may be obtained based on its sys_frmevent this data configuration.

Note the following:

Global variables can not be used in the url session object can not be accessed webUser. * A.

Note that system security to prevent unauthorized access.

Full use of the system parameters to obtain additional information.

If the url configured in the implementation of the content is in such a relative path is "/App/DoUrl.aspx", in bs mode will automatically stitching ccBPM its url http:. //YourserverIP/App/DoUrl.aspx If it is you need to configure BaseUrl in web.config in cs mode to tell the absolute path ccform execution.

Guess you like

Origin blog.51cto.com/14150825/2448387