Automatic Activity Example

The examples in these topics show the types of tasks you can perform within an Automatic Activity.

Sending an Email

In the following BP-Method, the Send E-mail activity sends e-mail notifications to the system administrator's e-mail inbox depending on the value in the serverDown variable. The whole BP-Method is automatically executed.
	if serverDown == true then
	  send Mail
	    using recipient = "sysAdmin@bea.com",
	          from = "sysAdmin@bea.com",
	          message = "Venus server is down. Please check!" 
	end
      

Updating a Database

In the following example, a database is updated with new employee's information. This BP-Method is in the Automatic activity because it does not require any end user intervention to update the database.
	INSERT INTO employee (fname, lname, salary, title)
	VALUES (firstName, lastName, salary, jobTitle);