Workflows are not a way to solve them. You must create an event listener for the item. The reason I say this is because it seems that you need some kind of code to run only after the element is added. Since you do not need to maintain state, then workflows are not an appropriate solution to this problem. Here's what you do: create a new class in Visual Studio and inherit it from SPItemEventReceiver. Override the method ItemAdded()and put your logic there. Example:
public class MyItemEventReceiver : SPItemEventReceiver
{
public override void ItemAdded(SPItemEventProperties properties)
{
base.ItemAdded(properties);
}
}
This code will be called after the item is added. If you need the code to execute before adding an element, you will override the method ItemAdding(). The way my company deploys event receivers is a bit different, but it's a book-to-method using Elements.xml:
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Receivers ListTemplateId="101">
<Receiver>
<Name>My Event Receiver</Name>
<Type>ItemAdding</Type>
<SequenceNumber>1000</SequenceNumber>
<Assembly>AssemblyName, Version=1.0.0.0, culture=neutral, PublicKeyToken=[token]</Assembly>
<Class>Namespace.Class</Class>
<Data></Data>
<Filter></Filter>
</Receiver>
</Receivers>
</Elements>
. , , . , , , <Data> . properties.ReceiverData . , <Filter> - WSS 3. , .